From f41cbf038e168a6a63c3f3d9297cb67164632b9d Mon Sep 17 00:00:00 2001 From: Ulf Carlsson Date: Mon, 19 Jun 2000 00:18:58 +0000 Subject: [PATCH] 2000-06-18 Ulf Carlsson * elf_bfd.h (struct elf_backend_data): Add info argument to elf_backend_hide_symbol. (_bfd_elf_link_hash_hide_symbol): Likewise. * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise. * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise. * elflink.h (elf_link_add_object_symbols): Likewise. (elf_link_assign_sym_version): Likewise. --- bfd/ChangeLog | 10 ++++++++++ bfd/elf-bfd.h | 4 ++-- bfd/elf.c | 3 ++- bfd/elf64-ia64.c | 3 ++- bfd/elflink.h | 8 ++++---- 5 files changed, 20 insertions(+), 8 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 92b23a22ccd..df53b6a13ec 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,13 @@ +2000-06-18 Ulf Carlsson + + * elf_bfd.h (struct elf_backend_data): Add info argument to + elf_backend_hide_symbol. + (_bfd_elf_link_hash_hide_symbol): Likewise. + * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise. + * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise. + * elflink.h (elf_link_add_object_symbols): Likewise. + (elf_link_assign_sym_version): Likewise. + 2000-06-18 H.J. Lu * coff-i386.c (coff_i386_reloc): Don't return in case of diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 3978aee2693..b17f7c6cda0 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -601,7 +601,7 @@ struct elf_backend_data /* Modify any information related to dynamic linking such that the symbol is not exported. */ void (*elf_backend_hide_symbol) - PARAMS ((struct elf_link_hash_entry *)); + PARAMS ((struct bfd_link_info *, struct elf_link_hash_entry *)); /* The swapping table to use when dealing with ECOFF information. Used for the MIPS ELF .mdebug section. */ @@ -970,7 +970,7 @@ extern struct bfd_link_hash_table *_bfd_elf_link_hash_table_create extern void _bfd_elf_link_hash_copy_indirect PARAMS ((struct elf_link_hash_entry *, struct elf_link_hash_entry *)); extern void _bfd_elf_link_hash_hide_symbol - PARAMS ((struct elf_link_hash_entry *)); + PARAMS ((struct bfd_link_info *, struct elf_link_hash_entry *)); extern boolean _bfd_elf_link_hash_table_init PARAMS ((struct elf_link_hash_table *, bfd *, struct bfd_hash_entry *(*) (struct bfd_hash_entry *, diff --git a/bfd/elf.c b/bfd/elf.c index c582e3ba6ad..a52d7933cd9 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -954,7 +954,8 @@ _bfd_elf_link_hash_copy_indirect (dir, ind) } void -_bfd_elf_link_hash_hide_symbol(h) +_bfd_elf_link_hash_hide_symbol(info, h) + struct bfd_link_info *info ATTRIBUTE_UNUSED; struct elf_link_hash_entry *h; { h->elf_link_hash_flags &= ~ELF_LINK_HASH_NEEDS_PLT; diff --git a/bfd/elf64-ia64.c b/bfd/elf64-ia64.c index 2fafeb18b29..cacfd6593fc 100644 --- a/bfd/elf64-ia64.c +++ b/bfd/elf64-ia64.c @@ -1307,7 +1307,8 @@ elf64_ia64_hash_copy_indirect (xdir, xind) } static void -elf64_ia64_hash_hide_symbol (xh) +elf64_ia64_hash_hide_symbol (info, xh) + struct bfd_link_info *info ATTRIBUTE_UNUSED; struct elf_link_hash_entry *xh; { struct elf64_ia64_link_hash_entry *h; diff --git a/bfd/elflink.h b/bfd/elflink.h index 70a2cccae34..b1f20d7708a 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -1860,7 +1860,7 @@ elf_link_add_object_symbols (abfd, info) case STV_INTERNAL: case STV_HIDDEN: h->elf_link_hash_flags |= ELF_LINK_FORCED_LOCAL; - (*bed->elf_backend_hide_symbol) (h); + (*bed->elf_backend_hide_symbol) (info, h); break; } } @@ -3707,7 +3707,7 @@ elf_link_assign_sym_version (h, data) && ! sinfo->export_dynamic) { h->elf_link_hash_flags |= ELF_LINK_FORCED_LOCAL; - (*bed->elf_backend_hide_symbol) (h); + (*bed->elf_backend_hide_symbol) (info, h); /* FIXME: The name of the symbol has already been recorded in the dynamic string table section. */ @@ -3819,7 +3819,7 @@ elf_link_assign_sym_version (h, data) && ! sinfo->export_dynamic) { h->elf_link_hash_flags |= ELF_LINK_FORCED_LOCAL; - (*bed->elf_backend_hide_symbol) (h); + (*bed->elf_backend_hide_symbol) (info, h); /* FIXME: The name of the symbol has already been recorded in the dynamic string table section. */ @@ -3841,7 +3841,7 @@ elf_link_assign_sym_version (h, data) && ! sinfo->export_dynamic) { h->elf_link_hash_flags |= ELF_LINK_FORCED_LOCAL; - (*bed->elf_backend_hide_symbol) (h); + (*bed->elf_backend_hide_symbol) (info, h); /* FIXME: The name of the symbol has already been recorded in the dynamic string table section. */ } -- 2.30.2