aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-04-04 00:31:37 +0000
committerAlan Modra <amodra@gmail.com>2001-04-04 00:31:37 +0000
commit391a809a0af96de6bc93f3608c738b9eb597f861 (patch)
treea5ed75595b22d8f31417b042df037b30ef7bcf49
parent76f4ea530371ca00de43ca7ba423271c30dff61c (diff)
downloadfsf-binutils-gdb-391a809a0af96de6bc93f3608c738b9eb597f861.zip
fsf-binutils-gdb-391a809a0af96de6bc93f3608c738b9eb597f861.tar.gz
fsf-binutils-gdb-391a809a0af96de6bc93f3608c738b9eb597f861.tar.bz2
* elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
when -Bsymbolic causes a symbol to no longer need a .plt entry.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elflink.h14
2 files changed, 11 insertions, 8 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 907cdc3..5977722 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2001-04-04 Alan Modra <alan@linuxcare.com.au>
+
+ * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
+ when -Bsymbolic causes a symbol to no longer need a .plt entry.
+
2001-04-03 David Mosberger <davidm@hpl.hp.com>
* efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 5ba86e7..9f15e9a 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