[binutils-gdb] ld/aarch64: prune a PE/COFF test
Jan Beulich
jbeulich@sourceware.org
Fri Aug 22 05:57:58 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=82f6aecc19e420684f8587422b7ae848ac63cd9d
commit 82f6aecc19e420684f8587422b7ae848ac63cd9d
Author: Jan Beulich <jbeulich@suse.com>
Date: Fri Aug 22 07:53:19 2025 +0200
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:
---
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 <foo>
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
More information about the Binutils-cvs
mailing list