aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>1999-06-18 04:25:56 +0000
committerRichard Henderson <rth@redhat.com>1999-06-18 04:25:56 +0000
commit72b60c230fe8c0e3b5ff286806da1f4fb8ca85c1 (patch)
tree6ff2069d2b4ddf63118995db7ca8358ea69e0c97 /bfd
parentfed881b14b312a298b604da1b3ef373e14adbe21 (diff)
downloadgdb-72b60c230fe8c0e3b5ff286806da1f4fb8ca85c1.zip
gdb-72b60c230fe8c0e3b5ff286806da1f4fb8ca85c1.tar.gz
gdb-72b60c230fe8c0e3b5ff286806da1f4fb8ca85c1.tar.bz2
* elf64-alpha.c (elf64_alpha_relocate_section): Don't adjust
GPDISP or LITUSE in a relocatable link.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf64-alpha.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index c0128c0..d99d9a2 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+Fri Jun 18 04:24:57 1999 Richard Henderson <rth@cygnus.com>
+
+ * elf64-alpha.c (elf64_alpha_relocate_section): Don't adjust
+ GPDISP or LITUSE in a relocatable link.
+
Thu Jun 17 21:24:43 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
* dwarf1.c (alloc_dwarf1_unit): Allocate using bfd_zalloc.
diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c
index 1964f86..a8a7c40 100644
--- a/bfd/elf64-alpha.c
+++ b/bfd/elf64-alpha.c
@@ -3423,6 +3423,12 @@ elf64_alpha_relocate_section (output_bfd, info, input_bfd, input_section,
anything, unless the reloc is against a section symbol,
in which case we have to adjust according to where the
section symbol winds up in the output section. */
+
+ /* The symbol associated with GPDISP and LITUSE is
+ immaterial. Only the addend is significant. */
+ if (r_type == R_ALPHA_GPDISP || r_type == R_ALPHA_LITUSE)
+ continue;
+
if (r_symndx < symtab_hdr->sh_info)
{
sym = local_syms + r_symndx;