diff options
author | Richard Henderson <rth@redhat.com> | 2002-05-02 17:46:59 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 2002-05-02 17:46:59 +0000 |
commit | 84de6048cc4c90cb3fb9905bb2472956feb18c28 (patch) | |
tree | 6d76c3a2a36cf5bfec6741eaa265dcf28e13cf72 /bfd | |
parent | a155881babae451353d9cbf26ad0cdf307e0a126 (diff) | |
download | gdb-84de6048cc4c90cb3fb9905bb2472956feb18c28.zip gdb-84de6048cc4c90cb3fb9905bb2472956feb18c28.tar.gz gdb-84de6048cc4c90cb3fb9905bb2472956feb18c28.tar.bz2 |
* elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs
vs SHN_UNDEF to zero.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf64-alpha.c | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f944a8b..dc22fe5 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-05-02 Richard Henderson <rth@redhat.com> + + * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs + vs SHN_UNDEF to zero. + 2002-05-02 Alan Modra <amodra@bigpond.net.au> * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c index 7151f06..94b4ebe 100644 --- a/bfd/elf64-alpha.c +++ b/bfd/elf64-alpha.c @@ -3695,6 +3695,16 @@ elf64_alpha_relocate_section (output_bfd, info, input_bfd, input_section, } goto default_reloc; + case R_ALPHA_SREL32: + case R_ALPHA_SREL64: + /* ??? .eh_frame references to discarded sections will be smashed + to relocations against SHN_UNDEF. The .eh_frame format allows + NULL to be encoded as 0 in any format, so this works here. */ + if (r_symndx == 0) + howto = (elf64_alpha_howto_table + + (r_type - R_ALPHA_SREL32 + R_ALPHA_REFLONG)); + goto default_reloc; + default: default_reloc: r = _bfd_final_link_relocate (howto, input_bfd, input_section, |