]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR 32896 testcase
authorAlan Modra <amodra@gmail.com>
Tue, 29 Apr 2025 00:12:15 +0000 (09:42 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 29 Apr 2025 23:31:23 +0000 (09:01 +0930)
Modify it a little to run on more targets.

ld/testsuite/ld-elf/tbss4.d
ld/testsuite/ld-elf/tbss4.s

index 77a865b5e1a4cb4e46a6af9a2d02f183710d8868..336ed8f27002575a1f66ca442dcdcec1f8348cde 100644 (file)
@@ -1,9 +1,13 @@
-#ld: -e _start --rosegment -z separate-code -z max-page-size=0x1000 -z common-page-size=0x1000
-#readelf: -l --wide
-#target: x86_64-*-linux* i?86-*-linux-gnu i?86-*-gnu*
+#ld: -e _start -Ttext=0x1000 -z max-page-size=0x1000 -z common-page-size=0x1000 -z noseparate-code
+#readelf: -lSW
+#target: *-linux* *-gnu*
+#notarget: hppa64-*-* ia64-*-*
 
 #...
- +TLS +0x0+1014 .*
+.* \.tbss +NOBITS +0+1014 +0+1014 +0+4 +0+ +WAT +0 +0 +4
+
+#...
+ +TLS +0x0*1014 +0x0+1014 +0x0+1014 +0x0+ +0x0+4 R +0x4
 #...
 .* \.tbss 
 #pass
index 1e7ec3efb0cc9fc82e918016e4bb6fd558cfc2ce..f49491e0e995ca1b18581c7f0fa7b1d4f113a75e 100644 (file)
@@ -5,11 +5,11 @@
        .section        .gcc_except_table,"aw",%progbits
 # Alignment is needed -- otherwise gcc_except_table start position seems to
 # be adjusted so that the tbss section is fully aligned.
-       .align 4
+       .balign 4
        .ascii "Odd number of chars"
 
        .section        .tbss,"awT",%nobits
-       .align 4
+       .balign 4
        .type   xyz, %object
        .size   xyz, 4
 xyz:
@@ -17,7 +17,7 @@ xyz:
 
        .data
 dataval:
-       .align 4
+       .balign 4
        .ascii "x"
 
        .text