diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2006-02-25 09:23:30 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2006-02-25 09:23:30 +0000 |
commit | 7325306f39112471924c0f2bf92734473686ae58 (patch) | |
tree | b1ce1d410d25866124e30ae2b236921fde870a3c /bfd/elf64-alpha.c | |
parent | 637d6690a829770987bd4433aacb157fc59ffb77 (diff) | |
download | gdb-7325306f39112471924c0f2bf92734473686ae58.zip gdb-7325306f39112471924c0f2bf92734473686ae58.tar.gz gdb-7325306f39112471924c0f2bf92734473686ae58.tar.bz2 |
bfd/
* elf-bfd.h (elf_link_hash_table): Add hplt field.
* elflink.c (_bfd_elf_create_dynamic_sections): Initialize it.
* elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise.
* elf32-frv.c (_frv_create_got_section): Likewise.
* elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise.
* elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
* elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise.
* elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise.
* elf32-i386.c (elf_i386_link_hash_table): Remove hgot and hplt.
(elf_i386_link_hash_table_create): Don't initialize them.
(elf_i386_size_dynamic_sections): Use the generic ELF hplt and
hgot fields.
(elf_i386_finish_dynamic_symbol): Likewise.
* elf32-ppc.c (ppc_elf_link_hash_table): Remove hplt.
(ppc_elf_size_dynamic_sections): Use the generic ELF hplt fields.
(ppc_elf_finish_dynamic_symbol): Likewise.
Diffstat (limited to 'bfd/elf64-alpha.c')
-rw-r--r-- | bfd/elf64-alpha.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c index 0472d7f..b6cbf23 100644 --- a/bfd/elf64-alpha.c +++ b/bfd/elf64-alpha.c @@ -1244,8 +1244,10 @@ elf64_alpha_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info) /* Define the symbol _PROCEDURE_LINKAGE_TABLE_ at the start of the .plt section. */ - if (!_bfd_elf_define_linkage_sym (abfd, info, s, - "_PROCEDURE_LINKAGE_TABLE_")) + h = _bfd_elf_define_linkage_sym (abfd, info, s, + "_PROCEDURE_LINKAGE_TABLE_"); + elf_hash_table (info)->hplt = h; + if (h == NULL) return FALSE; flags = (SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS | SEC_IN_MEMORY |