]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas: Update PR gas/33744 tests
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 17 Jan 2026 00:48:59 +0000 (08:48 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 17 Jan 2026 23:36:47 +0000 (07:36 +0800)
Since .set directive doesn't work on alpha and hpux has a non-standard
common directive, skip the relevant tests on alpha and hpux.  Also allow
2, 4, 8 byte section alignment for 1-byte section since some targets
have a minimum section alignment.

PR gas/33744
* testsuite/gas/elf/sh-link-abs-1.d: Skip alpha and allow 1, 2,
4, 8 byte section alignment.
* testsuite/gas/elf/sh-link-abs-2.d: Likewise.
* testsuite/gas/elf/sh-link-abs-3-32.d: Likewise.
* testsuite/gas/elf/sh-link-abs-3-64.d: Likewise.
* testsuite/gas/elf/sh-link-abs-4-32.d: Likewise
* testsuite/gas/elf/sh-link-abs-4-64.d: Likewise
* testsuite/gas/elf/sh-link-common-1.d: Skip hpux and allow 1,
2, 4, 8 byte section alignment.
* testsuite/gas/elf/sh-link-common-2.d: Likewise
* testsuite/gas/elf/sh-link-common-3-32.d: Likewise
* testsuite/gas/elf/sh-link-common-3-64.d: Likewise
* testsuite/gas/elf/sh-link-common-4-32.d: Likewise
* testsuite/gas/elf/sh-link-common-4-64.d: Likewise

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
12 files changed:
gas/testsuite/gas/elf/sh-link-abs-1.d
gas/testsuite/gas/elf/sh-link-abs-2.d
gas/testsuite/gas/elf/sh-link-abs-3-32.d
gas/testsuite/gas/elf/sh-link-abs-3-64.d
gas/testsuite/gas/elf/sh-link-abs-4-32.d
gas/testsuite/gas/elf/sh-link-abs-4-64.d
gas/testsuite/gas/elf/sh-link-common-1.d
gas/testsuite/gas/elf/sh-link-common-2.d
gas/testsuite/gas/elf/sh-link-common-3-32.d
gas/testsuite/gas/elf/sh-link-common-3-64.d
gas/testsuite/gas/elf/sh-link-common-4-32.d
gas/testsuite/gas/elf/sh-link-common-4-64.d

index 7010df0425f83bc331f7c53d63e95c8b29eb5068..f0fd70538ed69e92e00dc5bfc1d971b790876f39 100644 (file)
@@ -1,6 +1,8 @@
 #source: sh-link-abs.s
 #readelf: -SW
+#notarget: alpha*-*-*
+# .set directive doesn't work on alpha ports.
 
 #...
- +\[ *[0-9]+\] +__patchable_function_entries +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+[248] +0+ +WAL +ABS +0 +1
+ +\[ *[0-9]+\] +__patchable_function_entries +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+[248] +0+ +WAL +ABS +0 +[1248]+
 #pass
index e3058a97288f0c697b55af59abc82b0c285d4487..b0d84db1416702427721da357d77605e7c854811 100644 (file)
@@ -1,8 +1,10 @@
 #source: sh-link-abs.s
 #readelf: -tW
+#notarget: alpha*-*-*
+# .set directive doesn't work on alpha ports.
 
 #...
  +\[ *[0-9]+\] +__patchable_function_entries
- +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+[248] +0+ +ABS +0 +1
+ +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+[248] +0+ +ABS +0 +[1248]+
  +\[0+83\]: WRITE, ALLOC, LINK ORDER
 #pass
index efac2f115fc5fcb6043bfd7e34aa75b499045bb2..9960ac21d60e2d10983bce0890278fe61dbdb2a9 100644 (file)
@@ -1,6 +1,8 @@
 #source: sh-link-abs.s
 #readelf: -S
+#notarget: alpha*-*-*
+# .set directive doesn't work on alpha ports.
 
 #...
- +\[ *[0-9]+\] +__patchable_\[\.\.\.\] +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+[248] +0+ +WAL +ABS +0 +1
+ +\[ *[0-9]+\] +__patchable_\[\.\.\.\] +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+[248] +0+ +WAL +ABS +0 +[1248]+
 #pass
index 5724d27b2c90ccec26e8e95b8f0a6123e06e38d7..62cade5892076a96def14e999cc878194287fa95 100644 (file)
@@ -1,7 +1,9 @@
 #source: sh-link-abs.s
 #readelf: -S
+#notarget: alpha*-*-*
+# .set directive doesn't work on alpha ports.
 
 #...
  +\[ *[0-9]+\] +__patchable_\[\.\.\.\] +PROGBITS +[0-9a-f]+ +[0-9a-f]+
- +0+[248] +0+ +WAL +ABS +0 +1
+ +0+[248] +0+ +WAL +ABS +0 +[1248]+
 #pass
index 31387c4b7f2c11408d372bd27814f2d53be0c9fb..5bc92c9be78723b31040def88fc8c6b05e8d5769 100644 (file)
@@ -1,8 +1,10 @@
 #source: sh-link-abs.s
 #readelf: -t
+#notarget: alpha*-*-*
+# .set directive doesn't work on alpha ports.
 
 #...
  +\[ *[0-9]+\] +__patchable_function_entries
- +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+[248] +0+ +ABS +0 +1
+ +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+[248] +0+ +ABS +0 +[1248]+
  +\[0+83\]: WRITE, ALLOC, LINK ORDER
 #pass
index d0ae74d01d556e2dec99a2215949ce3217d7270b..9022eb30e3d4a47cf1a3368bbbc0c94293d77b48 100644 (file)
@@ -1,9 +1,11 @@
 #source: sh-link-abs.s
 #readelf: -t
+#notarget: alpha*-*-*
+# .set directive doesn't work on alpha ports.
 
 #...
  +\[ *[0-9]+\] +__patchable_function_entries
  +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +ABS
- +0+[248] +0+ +0 +1
+ +0+[248] +0+ +0 +[1248]+
  +\[0+83\]: WRITE, ALLOC, LINK ORDER
 #pass
index 1e042efbc1724ba07a5e49ecc56a21d211cad6d8..460583d0233b05b043cf630a5036acdea3ebde1d 100644 (file)
@@ -1,6 +1,8 @@
 #source: sh-link-common.s
 #readelf: -SW
+#notarget: *-*-hpux*
+# hpux has a non-standard common directive.
 
 #...
- +\[ *[0-9]+\] +__patchable_function_entries +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+[248] +0+ +WAL +COM +0 +1
+ +\[ *[0-9]+\] +__patchable_function_entries +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+[248] +0+ +WAL +COM +0 +[1248]+
 #pass
index aaed278bccf62863a2cbc98b6408b40cff248a52..21c28e711be9c9268884745a60d012995e99e76a 100644 (file)
@@ -1,8 +1,10 @@
 #source: sh-link-common.s
 #readelf: -tW
+#notarget: *-*-hpux*
+# hpux has a non-standard common directive.
 
 #...
  +\[ *[0-9]+\] +__patchable_function_entries
- +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+[248] +0+ +COM +0 +1
+ +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+[248] +0+ +COM +0 +[1248]+
  +\[0+83\]: WRITE, ALLOC, LINK ORDER
 #pass
index e2ca20f447f08770cd15c03565e343934cf0439f..d7905fcfa5930cbbecbbd64ddec4767cdf564985 100644 (file)
@@ -1,6 +1,8 @@
 #source: sh-link-common.s
 #readelf: -S
+#notarget: *-*-hpux*
+# hpux has a non-standard common directive.
 
 #...
- +\[ *[0-9]+\] +__patchable_\[\.\.\.\] +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+[248] +0+ +WAL +COM +0 +1
+ +\[ *[0-9]+\] +__patchable_\[\.\.\.\] +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+[248] +0+ +WAL +COM +0 +[1248]+
 #pass
index 86a2b9f7f39fe223854f6e31cc9e4eba34ed9efc..fb2a304af86a5c9787e32831658503a704df047b 100644 (file)
@@ -1,7 +1,9 @@
 #source: sh-link-common.s
 #readelf: -S
+#notarget: *-*-hpux*
+# hpux has a non-standard common directive.
 
 #...
  +\[ *[0-9]+\] +__patchable_\[\.\.\.\] +PROGBITS +[0-9a-f]+ +[0-9a-f]+
- +0+[248] +0+ +WAL +COM +0 +1
+ +0+[248] +0+ +WAL +COM +0 +[1248]+
 #pass
index ad0bb1b8193ef2bb4740bb7fabf0da7cedc1f945..6dd434c46a4840ad8010bbf7f5fc252c763b57df 100644 (file)
@@ -1,8 +1,10 @@
 #source: sh-link-common.s
 #readelf: -t
+#notarget: *-*-hpux*
+# hpux has a non-standard common directive.
 
 #...
  +\[ *[0-9]+\] +__patchable_function_entries
- +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+[248] +0+ +COM +0 +1
+ +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+[248] +0+ +COM +0 +[1248]+
  +\[0+83\]: WRITE, ALLOC, LINK ORDER
 #pass
index 4637b72883bdaeb584ee0f3bed20a2a414b5000c..0e5defa26681b462a9bb422dad801dbf37473c90 100644 (file)
@@ -1,9 +1,11 @@
 #source: sh-link-common.s
 #readelf: -t
+#notarget: *-*-hpux*
+# hpux has a non-standard common directive.
 
 #...
  +\[ *[0-9]+\] +__patchable_function_entries
  +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +COM
- +0+[248] +0+ +0 +1
+ +0+[248] +0+ +0 +[1248]+
  +\[0+83\]: WRITE, ALLOC, LINK ORDER
 #pass