summaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2001-04-04 00:31:37 +0000
committerAlan Modra <amodra@bigpond.net.au>2001-04-04 00:31:37 +0000
commit0d409dbffa686dc9fb5bc54d3ecbdb805178a9b2 (patch)
treedd233981a663062ae4c6ddd922fe99479a6d3e4c /bfd/elflink.h
parentc6673ce0c7288a340eee583d15e722065b58a9d5 (diff)
downloadgdb-0d409dbffa686dc9fb5bc54d3ecbdb805178a9b2.tar.gz
* elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
when -Bsymbolic causes a symbol to no longer need a .plt entry.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 5ba86e77e5a..9f15e9add0b 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -2957,14 +2957,13 @@ NAME(bfd_elf,size_dynamic_sections) (output_bfd, soname, rpath,
}
}
+ eif.info = info;
+ eif.failed = false;
+
/* If we are supposed to export all symbols into the dynamic symbol
table (this is not the normal case), then do so. */
if (export_dynamic)
{
- struct elf_info_failed eif;
-
- eif.failed = false;
- eif.info = info;
elf_link_hash_traverse (elf_hash_table (info), elf_export_symbol,
(PTR) &eif);
if (eif.failed)
@@ -2986,8 +2985,6 @@ NAME(bfd_elf,size_dynamic_sections) (output_bfd, soname, rpath,
/* Find all symbols which were defined in a dynamic object and make
the backend pick a reasonable value for them. */
- eif.failed = false;
- eif.info = info;
elf_link_hash_traverse (elf_hash_table (info),
elf_adjust_dynamic_symbol,
(PTR) &eif);
@@ -3526,8 +3523,9 @@ elf_fix_symbol_flags (h, eif)
&& (eif->info->symbolic || ELF_ST_VISIBILITY (h->other))
&& (h->elf_link_hash_flags & ELF_LINK_HASH_DEF_REGULAR) != 0)
{
- h->elf_link_hash_flags &=~ ELF_LINK_HASH_NEEDS_PLT;
- h->plt.offset = (bfd_vma) -1;
+ struct elf_backend_data *bed;
+ bed = get_elf_backend_data (elf_hash_table (eif->info)->dynobj);
+ (*bed->elf_backend_hide_symbol) (eif->info, h);
}
/* If this is a weak defined symbol in a dynamic object, and we know