]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86-64: Always check IBT PLT before BND PLT
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 17 Nov 2024 00:49:00 +0000 (08:49 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 17 Nov 2024 01:21:47 +0000 (09:21 +0800)
commitc0e7f9106416150ac58241d1fcec999e90566d23
tree57e1f96f4a37bd159309df952004f5f9ef055797
parent9dc89f2b274b8bc8c1c5335580997b2a14865503
x86-64: Always check IBT PLT before BND PLT

Since BND PLT has been deprecated and the same IBT PLT is used for both
x86-64 and x32, always check IBT PLT before BND PLT when synthesizing
PLT symtab.

* elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Always check
elf_x86_64_lazy_ibt_plt and elf_x86_64_non_lazy_ibt_plt first.

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