[binutils-gdb] gas: Update PR gas/33744 tests
H.J. Lu
hjl@sourceware.org
Sat Jan 17 23:36:59 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6b5d9284fcc1ed443ed3375a0d896db0b4be4658
commit 6b5d9284fcc1ed443ed3375a0d896db0b4be4658
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Jan 17 08:48:59 2026 +0800
gas: Update PR gas/33744 tests
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>
Diff:
---
gas/testsuite/gas/elf/sh-link-abs-1.d | 4 +++-
gas/testsuite/gas/elf/sh-link-abs-2.d | 4 +++-
gas/testsuite/gas/elf/sh-link-abs-3-32.d | 4 +++-
gas/testsuite/gas/elf/sh-link-abs-3-64.d | 4 +++-
gas/testsuite/gas/elf/sh-link-abs-4-32.d | 4 +++-
gas/testsuite/gas/elf/sh-link-abs-4-64.d | 4 +++-
gas/testsuite/gas/elf/sh-link-common-1.d | 4 +++-
gas/testsuite/gas/elf/sh-link-common-2.d | 4 +++-
gas/testsuite/gas/elf/sh-link-common-3-32.d | 4 +++-
gas/testsuite/gas/elf/sh-link-common-3-64.d | 4 +++-
gas/testsuite/gas/elf/sh-link-common-4-32.d | 4 +++-
gas/testsuite/gas/elf/sh-link-common-4-64.d | 4 +++-
12 files changed, 36 insertions(+), 12 deletions(-)
diff --git a/gas/testsuite/gas/elf/sh-link-abs-1.d b/gas/testsuite/gas/elf/sh-link-abs-1.d
index 7010df0425f..f0fd70538ed 100644
--- a/gas/testsuite/gas/elf/sh-link-abs-1.d
+++ b/gas/testsuite/gas/elf/sh-link-abs-1.d
@@ -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
diff --git a/gas/testsuite/gas/elf/sh-link-abs-2.d b/gas/testsuite/gas/elf/sh-link-abs-2.d
index e3058a97288..b0d84db1416 100644
--- a/gas/testsuite/gas/elf/sh-link-abs-2.d
+++ b/gas/testsuite/gas/elf/sh-link-abs-2.d
@@ -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
diff --git a/gas/testsuite/gas/elf/sh-link-abs-3-32.d b/gas/testsuite/gas/elf/sh-link-abs-3-32.d
index efac2f115fc..9960ac21d60 100644
--- a/gas/testsuite/gas/elf/sh-link-abs-3-32.d
+++ b/gas/testsuite/gas/elf/sh-link-abs-3-32.d
@@ -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
diff --git a/gas/testsuite/gas/elf/sh-link-abs-3-64.d b/gas/testsuite/gas/elf/sh-link-abs-3-64.d
index 5724d27b2c9..62cade58920 100644
--- a/gas/testsuite/gas/elf/sh-link-abs-3-64.d
+++ b/gas/testsuite/gas/elf/sh-link-abs-3-64.d
@@ -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
diff --git a/gas/testsuite/gas/elf/sh-link-abs-4-32.d b/gas/testsuite/gas/elf/sh-link-abs-4-32.d
index 31387c4b7f2..5bc92c9be78 100644
--- a/gas/testsuite/gas/elf/sh-link-abs-4-32.d
+++ b/gas/testsuite/gas/elf/sh-link-abs-4-32.d
@@ -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
diff --git a/gas/testsuite/gas/elf/sh-link-abs-4-64.d b/gas/testsuite/gas/elf/sh-link-abs-4-64.d
index d0ae74d01d5..9022eb30e3d 100644
--- a/gas/testsuite/gas/elf/sh-link-abs-4-64.d
+++ b/gas/testsuite/gas/elf/sh-link-abs-4-64.d
@@ -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
diff --git a/gas/testsuite/gas/elf/sh-link-common-1.d b/gas/testsuite/gas/elf/sh-link-common-1.d
index 1e042efbc17..460583d0233 100644
--- a/gas/testsuite/gas/elf/sh-link-common-1.d
+++ b/gas/testsuite/gas/elf/sh-link-common-1.d
@@ -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
diff --git a/gas/testsuite/gas/elf/sh-link-common-2.d b/gas/testsuite/gas/elf/sh-link-common-2.d
index aaed278bccf..21c28e711be 100644
--- a/gas/testsuite/gas/elf/sh-link-common-2.d
+++ b/gas/testsuite/gas/elf/sh-link-common-2.d
@@ -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
diff --git a/gas/testsuite/gas/elf/sh-link-common-3-32.d b/gas/testsuite/gas/elf/sh-link-common-3-32.d
index e2ca20f447f..d7905fcfa59 100644
--- a/gas/testsuite/gas/elf/sh-link-common-3-32.d
+++ b/gas/testsuite/gas/elf/sh-link-common-3-32.d
@@ -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
diff --git a/gas/testsuite/gas/elf/sh-link-common-3-64.d b/gas/testsuite/gas/elf/sh-link-common-3-64.d
index 86a2b9f7f39..fb2a304af86 100644
--- a/gas/testsuite/gas/elf/sh-link-common-3-64.d
+++ b/gas/testsuite/gas/elf/sh-link-common-3-64.d
@@ -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
diff --git a/gas/testsuite/gas/elf/sh-link-common-4-32.d b/gas/testsuite/gas/elf/sh-link-common-4-32.d
index ad0bb1b8193..6dd434c46a4 100644
--- a/gas/testsuite/gas/elf/sh-link-common-4-32.d
+++ b/gas/testsuite/gas/elf/sh-link-common-4-32.d
@@ -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
diff --git a/gas/testsuite/gas/elf/sh-link-common-4-64.d b/gas/testsuite/gas/elf/sh-link-common-4-64.d
index 4637b72883b..0e5defa2668 100644
--- a/gas/testsuite/gas/elf/sh-link-common-4-64.d
+++ b/gas/testsuite/gas/elf/sh-link-common-4-64.d
@@ -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
More information about the Binutils-cvs
mailing list