diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2024-06-11 20:55:05 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2024-06-14 13:38:19 -0700 |
commit | 93548ee191ff95cae0592363b579c6addb0b151d (patch) | |
tree | b8c1a0fdb54efbfe148ee1af30c78c1137adf416 /ld/testsuite/ld-x86-64/pr31868a.d | |
parent | 65e513dc95dcad1320c6bee4be1a10ed46f7d2cb (diff) | |
download | binutils-93548ee191ff95cae0592363b579c6addb0b151d.zip binutils-93548ee191ff95cae0592363b579c6addb0b151d.tar.gz binutils-93548ee191ff95cae0592363b579c6addb0b151d.tar.bz2 |
x86: Add -z isa-level-report=[none|all|needed|used]
Add -z isa-level-report=[none|all|needed|used] to the x86 ELF linker to
report needed and used x86-64 ISA levels.
bfd/
PR ld/31868
* elf-linker-x86.h (elf_x86_isa_level_report): New.
(elf_linker_x86_params): Add isa_level_report.
* elfxx-x86.c (report_isa_level): New.
(_bfd_x86_elf_link_setup_gnu_properties): Check
-z isa-level-report=[none|all|needed|used] to report needed and
used x86-64 ISA level.
ld/
PR ld/31868
* NEWS: Mention -z isa-level-report=[none|all|needed|used].
* ld.texi: Document -z isa-level-report=[none|all|needed|used].
* emulparams/elf32_x86_64.sh: Source x86-64-level-report.sh.
* emulparams/elf_i386.sh: Likewise.
* emulparams/elf_x86_64.sh: Likewise.
* emulparams/x86-64-level-report.sh: New file.
* testsuite/ld-i386/pr31868a.d: Likewise.
* testsuite/ld-i386/pr31868b.d: Likewise.
* testsuite/ld-i386/pr31868c.d: Likewise.
* testsuite/ld-x86-64/pr31868a-x32.d: Likewise.
* testsuite/ld-x86-64/pr31868a.d: Likewise.
* testsuite/ld-x86-64/pr31868a.l: Likewise.
* testsuite/ld-x86-64/pr31868a.s: Likewise.
* testsuite/ld-x86-64/pr31868b-x32.d: Likewise.
* testsuite/ld-x86-64/pr31868b.d: Likewise.
* testsuite/ld-x86-64/pr31868b.l: Likewise.
* testsuite/ld-x86-64/pr31868b.s: Likewise.
* testsuite/ld-x86-64/pr31868c-x32.d: Likewise.
* testsuite/ld-x86-64/pr31868c.d: Likewise.
* testsuite/ld-x86-64/pr31868c.l: Likewise.
* testsuite/ld-i386/i386.exp: Run PR ld/31868 tests.
* testsuite/ld-x86-64/x86-64.exp: Likewise.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'ld/testsuite/ld-x86-64/pr31868a.d')
-rw-r--r-- | ld/testsuite/ld-x86-64/pr31868a.d | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/pr31868a.d b/ld/testsuite/ld-x86-64/pr31868a.d new file mode 100644 index 0000000..54839bb --- /dev/null +++ b/ld/testsuite/ld-x86-64/pr31868a.d @@ -0,0 +1,12 @@ +#source: pr31868a.s +#source: pr31868b.s +#as: --64 -defsym __64_bit__=1 +#warning_output: pr31868a.l +#ld: -r -m elf_x86_64 -z isa-level-report=all +#readelf: -n + +Displaying notes found in: .note.gnu.property +[ ]+Owner[ ]+Data size[ ]+Description + GNU 0x00000020 NT_GNU_PROPERTY_TYPE_0 + Properties: x86 ISA needed: x86-64-baseline, x86-64-v2, x86-64-v3, <unknown: 10>, <unknown: 20> + x86 ISA used: x86-64-baseline, x86-64-v2, x86-64-v3, x86-64-v4, <unknown: 10>, <unknown: 40> |