* elf64-alpha.c (elf64_alpha_relocate_section): Don't adjust

GPDISP or LITUSE in a relocatable link.
This commit is contained in:
Richard Henderson 1999-06-18 04:25:56 +00:00
parent fed881b14b
commit 72b60c230f
2 changed files with 11 additions and 0 deletions

View file

@ -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.

View file

@ -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;