[PATCH] ld/aarch64: prune a PE/COFF test
Jan Beulich
jbeulich@suse.com
Fri Aug 8 13:38:17 GMT 2025
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.
---
v2: New (split out and re-worked).
--- 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>
--- 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
mailing list