]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: Properly merge -z ibt and -z shstk
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 6 Oct 2020 22:38:23 +0000 (15:38 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 6 Oct 2020 22:38:34 +0000 (15:38 -0700)
commit574df58f5295ef2728526e6a73b5f429b05f2a8c
tree6b9e44b9368a64b1e19ae96174a1e39c40c034b1
parent981b570a53f525ee1776524297a55eef9415d50d
x86: Properly merge -z ibt and -z shstk

Merge -z ibt and -z shstk only with GNU_PROPERTY_X86_FEATURE_1_AND, not
any GNU_PROPERTY_X86_UINT32_AND_XXX properties.

bfd/

PR ld/26711
* elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Merge -z ibt
and -z shstk only with GNU_PROPERTY_X86_FEATURE_1_AND.

ld/

PR ld/26711
* testsuite/ld-i386/i386.exp: Run ld/26711 tests.
* testsuite/ld-x86-64/x86-64.exp: Likewise.
* testsuite/ld-i386/pr26711-1.d: Likewise.
* testsuite/ld-i386/pr26711-2.d: Likewise.
* testsuite/ld-i386/pr26711-3.d: Likewise.
* testsuite/ld-x86-64/pr26711-1-x32.d: Likewise.
* testsuite/ld-x86-64/pr26711-1.d: Likewise.
* testsuite/ld-x86-64/pr26711-2-x32.d: Likewise.
* testsuite/ld-x86-64/pr26711-2.d: Likewise.
* testsuite/ld-x86-64/pr26711-3-x32.d: Likewise.
* testsuite/ld-x86-64/pr26711-3.d: Likewise.
* testsuite/ld-x86-64/pr26711.s: Likewise.
15 files changed:
bfd/ChangeLog
bfd/elfxx-x86.c
ld/ChangeLog
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-i386/pr26711-1.d [new file with mode: 0644]
ld/testsuite/ld-i386/pr26711-2.d [new file with mode: 0644]
ld/testsuite/ld-i386/pr26711-3.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr26711-1-x32.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr26711-1.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr26711-2-x32.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr26711-2.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr26711-3-x32.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr26711-3.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr26711.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp