From: Jan Beulich Date: Fri, 22 Aug 2025 05:53:19 +0000 (+0200) Subject: ld/aarch64: prune a PE/COFF test X-Git-Tag: gdb-17-branchpoint~225 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=82f6aecc19e420684f8587422b7ae848ac63cd9d;p=thirdparty%2Fbinutils-gdb.git ld/aarch64: prune a PE/COFF test Expecting ___tls_end__ there is entirely random, when there are multiple symbols all at the same address. Help objdump to pick the intended symbol, by making it global and giving it a type. --- diff --git a/ld/testsuite/ld-pe/pe-aarch64.d b/ld/testsuite/ld-pe/pe-aarch64.d index 18b1c9beaca..ac287a60be0 100644 --- a/ld/testsuite/ld-pe/pe-aarch64.d +++ b/ld/testsuite/ld-pe/pe-aarch64.d @@ -6,7 +6,7 @@ Disassembly of section .text: -0000000140001000 <___tls_end__>: +0000000140001000 <_start>: 140001000: d2800281 mov x1, #0x14 // #20 140001004: 14000001 b 140001008 diff --git a/ld/testsuite/ld-pe/pe-aarch64.s b/ld/testsuite/ld-pe/pe-aarch64.s index 5d493508913..b9e7dae3071 100644 --- a/ld/testsuite/ld-pe/pe-aarch64.s +++ b/ld/testsuite/ld-pe/pe-aarch64.s @@ -4,6 +4,11 @@ .section .text + .global _start + .def _start + .scl 2 /* C_EXT */ + .type 32 /* DT_FUNC */ + .endef _start: mov x1, 20 b foo