diff options
author | Richard Henderson <rth@redhat.com> | 2000-02-18 09:23:06 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 2000-02-18 09:23:06 +0000 |
commit | c61b8717214f5a3fffc7fd33afe2e205132c82bb (patch) | |
tree | db5bd01f4b4ec29d1c463c5e4f0d793d1a28e9dd /bfd/elf.c | |
parent | 9365c12ca38698e3b3c5653080714f526204982e (diff) | |
download | gdb-c61b8717214f5a3fffc7fd33afe2e205132c82bb.zip gdb-c61b8717214f5a3fffc7fd33afe2e205132c82bb.tar.gz gdb-c61b8717214f5a3fffc7fd33afe2e205132c82bb.tar.bz2 |
* elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
and hide_symbol members.
(elf_link_hash_copy_indirect): Remove.
(elf_link_hash_hide_symbol): Remove.
(struct elf_backend_data): Add elf_backend_copy_indirect_symbol
and elf_backend_hide_symbol.
(_bfd_elf_link_hash_copy_indirect): Declare.
(_bfd_elf_link_hash_hide_symbol): Declare.
* elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
(_bfd_elf_link_hash_hide_symbol): Likewise.
(_bfd_elf_link_hash_table_init): Don't init killed members.
* elflink.h (elf_link_add_object_symbols): Use the bed function
pointers not elf_link_hash_{copy_indirect,hide_symbol}.
(elf_link_assign_sym_version): Likewise.
* elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
(elf_backend_hide_symbol): Likewise.
(elfNN_bed): Update for new members.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -909,9 +909,8 @@ _bfd_elf_link_hash_newfunc (entry, table, string) /* Copy data from an indirect symbol to its direct symbol, hiding the old indirect symbol. */ -static void -_bfd_elf_link_hash_copy_indirect (table, dir, ind) - struct elf_link_hash_table *table; +void +_bfd_elf_link_hash_copy_indirect (dir, ind) struct elf_link_hash_entry *dir, *ind; { /* Copy down any references that we may have already seen to the @@ -950,9 +949,8 @@ _bfd_elf_link_hash_copy_indirect (table, dir, ind) BFD_ASSERT (ind->dynindx == -1); } -static void -_bfd_elf_link_hash_hide_symbol(table, h) - struct elf_link_hash_table *table; +void +_bfd_elf_link_hash_hide_symbol(h) struct elf_link_hash_entry *h; { h->elf_link_hash_flags &= ~ELF_LINK_HASH_NEEDS_PLT; @@ -979,8 +977,6 @@ _bfd_elf_link_hash_table_init (table, abfd, newfunc) table->needed = NULL; table->hgot = NULL; table->stab_info = NULL; - table->copy_indirect = _bfd_elf_link_hash_copy_indirect; - table->hide_symbol = _bfd_elf_link_hash_hide_symbol; return _bfd_link_hash_table_init (&table->root, abfd, newfunc); } |