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

From: youling 257
Date: Sat Apr 11 2020 - 13:30:41 EST


i build 64bit kernel on 32bit host. please fix.

2020-04-09 15:38 GMT+08:00, Peter Zijlstra <peterz@xxxxxxxxxxxxx>:
> 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.
>