diff options
author | Richard Henderson <rth@redhat.com> | 2005-05-26 16:14:33 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 2005-05-26 16:14:33 +0000 |
commit | 297d892bb8fe1f5a6f7c4ea431c0bbc83c329830 (patch) | |
tree | 57f6993163125490f649a32155f29956ed8929d5 | |
parent | fbd407c80cb432f03c3a0b9a0bdcb8d82a92a6e2 (diff) | |
download | gdb-297d892bb8fe1f5a6f7c4ea431c0bbc83c329830.tar.gz |
* elf64-alpha.c (struct alpha_elf_link_hash_entry): Remove
plt_old_section, plt_old_value.
(elf64_alpha_adjust_dynamic_symbol): Don't set it.
(elf64_alpha_size_plt_section_1): Don't use it.
-rw-r--r-- | bfd/ChangeLog | 7 | ||||
-rw-r--r-- | bfd/elf64-alpha.c | 26 |
2 files changed, 7 insertions, 26 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0b67df2f9b2..25bef0f6a3e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2005-05-26 Richard Henderson <rth@redhat.com> + + * elf64-alpha.c (struct alpha_elf_link_hash_entry): Remove + plt_old_section, plt_old_value. + (elf64_alpha_adjust_dynamic_symbol): Don't set it. + (elf64_alpha_size_plt_section_1): Don't use it. + 2005-05-26 Jakub Jelinek <jakub@redhat.com> * elfcode.h (elf_object_p): Fail if e_shoff != 0, e_shnum == 0 and diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c index fd0d0524842..de8a90c3331 100644 --- a/bfd/elf64-alpha.c +++ b/bfd/elf64-alpha.c @@ -69,10 +69,6 @@ struct alpha_elf_link_hash_entry #define ALPHA_ELF_LINK_HASH_TLS_IE 0x40 #define ALPHA_ELF_LINK_HASH_PLT_LOC 0x80 - /* Used to undo the localization of a plt symbol. */ - asection *plt_old_section; - bfd_vma plt_old_value; - /* Used to implement multiple .got subsections. */ struct alpha_elf_got_entry { @@ -2017,20 +2013,6 @@ elf64_alpha_adjust_dynamic_symbol (struct bfd_link_info *info, h->plt.offset = s->size; s->size += PLT_ENTRY_SIZE; - /* If this symbol is not defined in a regular file, and we are not - generating a shared library, then set the symbol to the location - in the .plt. This is required to make function pointers compare - equal between the normal executable and the shared library. */ - if (! info->shared - && h->root.type != bfd_link_hash_defweak) - { - ah->plt_old_section = h->root.u.def.section; - ah->plt_old_value = h->root.u.def.value; - ah->flags |= ALPHA_ELF_LINK_HASH_PLT_LOC; - h->root.u.def.section = s; - h->root.u.def.value = h->plt.offset; - } - /* We also need a JMP_SLOT entry in the .rela.plt section. */ s = bfd_get_section_by_name (dynobj, ".rela.plt"); BFD_ASSERT (s != NULL); @@ -2480,14 +2462,6 @@ elf64_alpha_size_plt_section_1 (struct alpha_elf_link_hash_entry *h, PTR data) { h->root.needs_plt = 0; h->root.plt.offset = -1; - - /* Undo the definition frobbing begun in adjust_dynamic_symbol. */ - if (h->flags & ALPHA_ELF_LINK_HASH_PLT_LOC) - { - h->root.root.u.def.section = h->plt_old_section; - h->root.root.u.def.value = h->plt_old_value; - h->flags &= ~ALPHA_ELF_LINK_HASH_PLT_LOC; - } } return TRUE; |