Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/binutils/bfd Only compile 64 bit relocations if we ...
details: https://anonhg.NetBSD.org/src/rev/465b1748c97d
branches: trunk
changeset: 571931:465b1748c97d
user: christos <christos%NetBSD.org@localhost>
date: Sat Dec 11 08:42:55 2004 +0000
description:
Only compile 64 bit relocations if we can build a 64 bit target (BFD64)
not if the 64 bit type is defined (BFD_HOST_64_BIT) because the second
is always defined, even if it falls back to a 32 bit type. In our case,
this was not the problem; the problem was that we bfd_vma is a 32 bit
type when BFD64 is not defined, so the shift was out of range.
diffstat:
gnu/dist/binutils/bfd/elflink.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 744a44032153 -r 465b1748c97d gnu/dist/binutils/bfd/elflink.c
--- a/gnu/dist/binutils/bfd/elflink.c Sat Dec 11 07:42:57 2004 +0000
+++ b/gnu/dist/binutils/bfd/elflink.c Sat Dec 11 08:42:55 2004 +0000
@@ -7061,7 +7061,7 @@
if (bed->s->arch_size == 32)
irel[0].r_info = ELF32_R_INFO (indx, howto->type);
else
-#ifdef BFD_HOST_64_BIT
+#ifdef BFD64
{
bfd_uint64_t indx64 = indx;
irel[0].r_info = ELF64_R_INFO (indx64, howto->type);
Home |
Main Index |
Thread Index |
Old Index