Re: Merge branch 'core-objtool-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

From: Peter Zijlstra
Date: Thu Apr 09 2020 - 03:38:15 EST


On Thu, Apr 09, 2020 at 10:00:53AM +0800, youling 257 wrote:
> d937a6dfc9428f470c3ce4d459c390944ddef538 caused 64bit kernel build
> failed on 32bit userspace.
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d937a6dfc9428f470c3ce4d459c390944ddef538
>
> 2020-04-08 16:13 GMT+08:00, youling 257 <youling257@xxxxxxxxx>:
> > after this merge branch, build 64bit kernel failed on 32bit userspace.
> >
> >
> > CC tools/objtool/builtin-check.o
> > CC tools/objtool/builtin-orc.o
> > In file included from check.h:10,
> > from builtin-check.c:18:
> > elf.h: In function âsec_offset_hashâ:
> > elf.h:102:14: error: right shift count >= width of type
> > [-Werror=shift-count-overflow]
> > 102 | oh = offset >> 32;
> > | ^~

Oh right; I figured it wouldn't matter since we don't do objtool for
32bit kernels, but I suppose you're cross building a 64bit kernel on a
32bit host or something daft like that?

I'll go fix it.