tweak __ehdr_start visibility and flags for check_relocs
authorAlan Modra <amodra@gmail.com>
Wed, 12 Jan 2022 13:12:23 +0000 (23:42 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 18 Jan 2022 00:48:45 +0000 (11:18 +1030)
commit97da0e2677c4a38df2406576428ec27d1da26e7c
tree3f7a0a7c2dbf856d95a0fb876ec3257f848d316d
parent1f95afb8894820f99682bd9379804f5d2a1e324e
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.
bfd/elf-bfd.h
ld/ldelf.c
ld/ldlang.c