]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: Use hehdr_start for __ehdr_start
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 3 Feb 2025 22:16:28 +0000 (06:16 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 6 Feb 2025 04:15:15 +0000 (12:15 +0800)
commit15014e9b31adca41bc1bd27ad6b2031d8c51f79e
tree98ba009c2951ac323e3c77cce045bce1a98336df
parent023dd0649ebcb7f82ba13aead02ed9200b6b5372
x86: Use hehdr_start for __ehdr_start

Use hehdr_start for __ehdr_start instead of elf_link_hash_lookup.

* elfxx-x86.c (elf_x86_linker_defined): Use hehdr_start if name
is NULL.
(_bfd_x86_elf_link_check_relocs): Pass NULL as __ehdr_start to
elf_x86_linker_defined.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
bfd/elfxx-x86.c