diff options
author | Alan Modra <amodra@gmail.com> | 2022-01-12 23:42:23 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-01-18 11:18:45 +1030 |
commit | 97da0e2677c4a38df2406576428ec27d1da26e7c (patch) | |
tree | 3f7a0a7c2dbf856d95a0fb876ec3257f848d316d /ld/ldelf.c | |
parent | 1f95afb8894820f99682bd9379804f5d2a1e324e (diff) | |
download | fsf-binutils-gdb-97da0e2677c4a38df2406576428ec27d1da26e7c.zip fsf-binutils-gdb-97da0e2677c4a38df2406576428ec27d1da26e7c.tar.gz fsf-binutils-gdb-97da0e2677c4a38df2406576428ec27d1da26e7c.tar.bz2 |
tweak __ehdr_start visibility and flags for check_relocs
bfd/
* elf-bfd.h (UNDEFWEAK_NO_DYNAMIC_RELOC): Test linker_def.
ld/
* ldelf.c (ldelf_before_allocation): Don't force __ehdr_start
local and hidden here..
* ldlang.c (lang_symbol_tweaks): ..do so here instead and set
def_regular and linker_def for check_relocs. New function
extracted from lang_process.
Diffstat (limited to 'ld/ldelf.c')
-rw-r--r-- | ld/ldelf.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -1607,11 +1607,6 @@ ldelf_before_allocation (char *audit, char *depaudit, || h->root.type == bfd_link_hash_undefweak || h->root.type == bfd_link_hash_common)) { - const struct elf_backend_data *bed; - bed = get_elf_backend_data (link_info.output_bfd); - (*bed->elf_backend_hide_symbol) (&link_info, h, true); - if (ELF_ST_VISIBILITY (h->other) != STV_INTERNAL) - h->other = (h->other & ~ELF_ST_VISIBILITY (-1)) | STV_HIDDEN; /* Don't leave the symbol undefined. Undefined hidden symbols typically won't have dynamic relocations, but we most likely will need dynamic relocations for |