]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/testsuite/ld-aarch64/morello-capinit.d
ld: Adjust bounds, base, and size for various symbols
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-aarch64 / morello-capinit.d
index d4a25e3b66bfa28b4c7753392dc77be960a9995f..9035351d215c0bee71e2efca30dc232a40890b22 100644 (file)
@@ -1,46 +1,91 @@
+# This testsuite is used largely to check our handling of linker script defined
+# symbols.  In the general case we want to be able to access the entire output
+# section following this symbol (i.e. we treat this symbol as a start symbol).
+#
+# There is an exception for a symbol that points into an executable section --
+# we want this to have the bounds of the PCC as we see it.
+#
+# There is also an exception for a symbol which is *outside* of an output
+# section where we have a compatibility hack to try and guess whether it
+# represents the start of the next section or end of the previous section.
 #source: morello-capinit.s
 #as: -march=morello+c64
 #ld: -static -pie -T morello-capinit.ld
-#objdump: -DR -j .data
+#objdump: -DR -j .inspectionsection
 
 .*:     file format .*
 
 
-Disassembly of section \.data:
+Disassembly of section \.inspectionsection:
 
 [0-9a-f]+ <ct_outer_start>:
 .*:    [0-9a-f]+       .*
-                       .*: R_MORELLO_RELATIVE  \*ABS\*
+                       .*: R_MORELLO_RELATIVE  \*ABS\*\+0x[0-9a-f]+
 .*:    00000000        .*
-.*:    00000c01        .*
+.*:    00027001        .*
 .*:    00000000        .*
 
 [0-9a-f]+ <ct_start>:
 .*:    [0-9a-f]+       .*
-                       .*: R_MORELLO_RELATIVE  \*ABS\*
+                       .*: R_MORELLO_RELATIVE  \*ABS\*\+0x[0-9a-f]+
 .*:    00000000        .*
-.*:    00000c01        .*
+.*:    00027001        .*
 .*:    00000000        .*
 
 [0-9a-f]+ <ct1_start>:
 .*:    [0-9a-f]+       .*
-                       .*: R_MORELLO_RELATIVE  \*ABS\*
+                       .*: R_MORELLO_RELATIVE  \*ABS\*\+0x[0-9a-f]+
 .*:    00000000        .*
-.*:    00000801        .*
+.*:    00027001        .*
 .*:    00000000        .*
 
 [0-9a-f]+ <ct1_end>:
 .*:    [0-9a-f]+       .*
-                       .*: R_MORELLO_RELATIVE  \*ABS\*
+                       .*: R_MORELLO_RELATIVE  \*ABS\*\+0x[0-9a-f]+
 .*:    00000000        .*
-.*:    00000401        .*
+.*:    00027001        .*
 .*:    00000000        .*
 
 [0-9a-f]+ <ct_end>:
+.*:    [0-9a-f]+       .*
+                       .*: R_MORELLO_RELATIVE  \*ABS\*\+0x[0-9a-f]+
+.*:    00000000        .*
+.*:    00027001        .*
+.*:    00000000        .*
+
+[0-9a-f]+ <cd_outer_start>:
+.*:    [0-9a-f]+       .*
+                       .*: R_MORELLO_RELATIVE  \*ABS\*
+.*:    00000000        .*
+.*:    00000c02        .*
+.*:    00000000        .*
+
+[0-9a-f]+ <cd_start>:
+.*:    [0-9a-f]+       .*
+                       .*: R_MORELLO_RELATIVE  \*ABS\*
+.*:    00000000        .*
+.*:    00000c02        .*
+.*:    00000000        .*
+
+[0-9a-f]+ <cd1_start>:
+.*:    [0-9a-f]+       .*
+                       .*: R_MORELLO_RELATIVE  \*ABS\*
+.*:    00000000        .*
+.*:    00000802        .*
+.*:    00000000        .*
+
+[0-9a-f]+ <cd1_end>:
+.*:    [0-9a-f]+       .*
+                       .*: R_MORELLO_RELATIVE  \*ABS\*
+.*:    00000000        .*
+.*:    00000402        .*
+.*:    00000000        .*
+
+[0-9a-f]+ <cd_end>:
 .*:    [0-9a-f]+       .*
                        .*: R_MORELLO_RELATIVE  \*ABS\*
 .*:    00000000        .*
-.*:    00000001        .*
+.*:    00000002        .*
 .*:    00000000        .*
 
 [0-9a-f]+ <cdynamic>: