This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: 32 bit host build failure from peXXigen.c
- From: asmwarrior <asmwarrior at gmail dot com>
- To: Doug Evans <dje at google dot com>, nick clifton <nickc at redhat dot com>, Binutils <binutils at sourceware dot org>
- Date: Thu, 17 Apr 2014 08:15:56 +0800
- Subject: Re: 32 bit host build failure from peXXigen.c
- Authentication-results: sourceware.org; auth=none
- References: <CADPb22TrR1JijxeY0QSyusX0R4hA5c3rx1QfUmOGW_HVGfG6AA at mail dot gmail dot com>
On 2014-4-17 1:34, Doug Evans wrote:
> Hi.
>
> Commit 32ae0d80cd430150ad9536aa160f34f504e129bc has this:
>
> PR ld/16821
> * peXXigen.c (abs_finder): New function.
> (_bfd_XXi_swap_sym_out): For absolute symbols with values larger
> than 1^32 try to convert them into section relative values
> instead.
>
> and I'm getting build failures.
>
> peigen.c: In function 'abs_finder':
> peigen.c:215:3: error: left shift count >= width of type [-Werror]
> return (sec->vma <= abs_val) && ((sec->vma + (1L << 32)) > abs_val);
> ^
> peigen.c: In function '_bfd_pei_swap_sym_out':
> peigen.c:239:7: error: left shift count >= width of type [-Werror]
> && in->n_value > ((1L << 32) - 1)
> ^
> peigen.c:239:22: error: comparison between signed and unsigned integer
> expressions [-Werror=sign-compare]
> && in->n_value > ((1L << 32) - 1)
>
>
> Nick, can you fix?
> Thanks!
>
FYI:
Some discussion about this build failures were here:
https://sourceware.org/bugzilla/show_bug.cgi?id=16821
Yuanhui Zhang