From 82f6aecc19e420684f8587422b7ae848ac63cd9d Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 22 Aug 2025 07:53:19 +0200 Subject: [PATCH] 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. --- ld/testsuite/ld-pe/pe-aarch64.d | 2 +- ld/testsuite/ld-pe/pe-aarch64.s | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 -- 2.47.3