aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2025-08-22 07:53:19 +0200
committerJan Beulich <jbeulich@suse.com>2025-08-22 07:53:19 +0200
commit82f6aecc19e420684f8587422b7ae848ac63cd9d (patch)
tree99b9ace8a8e61f2125b9db19eb2b4718b1a5523b /ld
parent99ee75c1cd0d43b37d89b045d8984f68763af323 (diff)
downloadbinutils-82f6aecc19e420684f8587422b7ae848ac63cd9d.zip
binutils-82f6aecc19e420684f8587422b7ae848ac63cd9d.tar.gz
binutils-82f6aecc19e420684f8587422b7ae848ac63cd9d.tar.bz2
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.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ld-pe/pe-aarch64.d2
-rw-r--r--ld/testsuite/ld-pe/pe-aarch64.s5
2 files changed, 6 insertions, 1 deletions
diff --git a/ld/testsuite/ld-pe/pe-aarch64.d b/ld/testsuite/ld-pe/pe-aarch64.d
index 18b1c9b..ac287a6 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 5d49350..b9e7dae 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