From: Nick Clifton Date: Tue, 22 Apr 2014 15:57:34 +0000 (+0100) Subject: Another fix for building on a 32-bit host. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d5f59c10fc37e325d3fbad4ae7970c7cf0857b46;p=binutils-gdb.git Another fix for building on a 32-bit host. PR ld/16821 * peXXigen.c (_bfd_XXi_swap_sym_out): Fix for 32-bit hosts. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4833b7ba6ef..f76f7cd527a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2014-04-22 Nick Clifton + + PR ld/16821 + * peXXigen.c (_bfd_XXi_swap_sym_out): Fix for 32-bit hosts. + 2014-04-22 Christian Svensson * Makefile.am: Remove openrisc and or32 support. Add support for or1k. diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c index 56224a89cbb..acd42787c95 100644 --- a/bfd/peXXigen.c +++ b/bfd/peXXigen.c @@ -236,7 +236,7 @@ _bfd_XXi_swap_sym_out (bfd * abfd, void * inp, void * extp) reduce the absolute value to < 1^32, and then transforming the symbol into a section relative symbol. This of course is a hack. */ if (sizeof (in->n_value) > 4 - && in->n_value > ((1L << 32) - 1) + && in->n_value > ((1ULL << 32) - 1) && in->n_scnum == -1) { asection * sec;