]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/testsuite/ld-aarch64/morello-sizeless-global-syms.d
Make various linker tests more robust
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-aarch64 / morello-sizeless-global-syms.d
index 89c7963b789dba65b7bb00c07c7197bb5759a8d9..51877627255c2f41dd27e077c54424bc7ae47f38 100644 (file)
@@ -9,34 +9,40 @@
 Disassembly of section \.data:
 
 [0-9a-f]+ <ptr3>:
-   [0-9a-f]+:  00010450.*
+#record: BSS_START
+   [0-9a-f]+:  ([0-9a-f]+) .*
                        [0-9a-f]+: R_MORELLO_RELATIVE   \*ABS\*
    [0-9a-f]+:  00000000.*
    [0-9a-f]+:  00000000.*
    [0-9a-f]+:  02000000.*
 
 [0-9a-f]+ <ptr2>:
-   [0-9a-f]+:  00010454.*
+#check: BAR_POS format %08x [expr "0x$BSS_START + 0x4"]
+   [0-9a-f]+:  BAR_POS .*
                        [0-9a-f]+: R_MORELLO_RELATIVE   \*ABS\*
    [0-9a-f]+:  00000000.*
    [0-9a-f]+:  00000000.*
    [0-9a-f]+:  02000000.*
 
 [0-9a-f]+ <ptr1>:
-   [0-9a-f]+:  00010458.*
+#check: FOO_POS format %08x [expr "0x$BSS_START + 0x8"]
+   [0-9a-f]+:  FOO_POS .*
                        [0-9a-f]+: R_MORELLO_RELATIVE   \*ABS\*
    [0-9a-f]+:  00000000.*
    [0-9a-f]+:  00000000.*
    [0-9a-f]+:  02000000.*
 
-Disassembly of section .bss:
+Disassembly of section \.bss:
 
-0000000000010450 <baz>:
+#check: BAZL_POS format %016x 0x$BSS_START
+#check: BARL_POS format %016x [expr "0x$BSS_START + 0x4"]
+#check: FOOL_POS format %016x [expr "0x$BSS_START + 0x8"]
+BAZL_POS <baz>:
    [0-9a-f]+:  00000000.*
 
-[0-9a-f]+ <bar>:
+BARL_POS <bar>:
    [0-9a-f]+:  00000000.*
 
-[0-9a-f]+ <foo>:
+FOOL_POS <foo>:
    [0-9a-f]+:  00000000.*
    [0-9a-f]+:  00000000.*