]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld/aarch64: prune a PE/COFF test
authorJan Beulich <jbeulich@suse.com>
Fri, 22 Aug 2025 05:53:19 +0000 (07:53 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 22 Aug 2025 05:53:19 +0000 (07:53 +0200)
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
ld/testsuite/ld-pe/pe-aarch64.s

index 18b1c9beacadd2d9d5c2b30cf02a1187e9923e8f..ac287a60be0fb497aad9ddc448fad422c112bbc3 100644 (file)
@@ -6,7 +6,7 @@
 
 Disassembly of section .text:
 
-0000000140001000 <___tls_end__>:
+0000000140001000 <_start>:
    140001000:  d2800281        mov     x1, #0x14                       // #20
    140001004:  14000001        b       140001008 <foo>
 
index 5d493508913a6f3ebf081560d6cef1f1699dc17b..b9e7dae3071af15a5c509f7d1827b2f678dc209d 100644 (file)
@@ -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