summaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2021-06-18 19:56:47 -0700
committerH.J. Lu <hjl.tools@gmail.com>2021-06-19 04:41:10 -0700
commitc30420d82a0b743285cf8333f90ca85274632714 (patch)
tree17ea35969561e2e6ad8f8a39e4274e12fdcb45ea /ld/testsuite
parentb5689863bdca11c6c86fe8d02b4f7330804f6883 (diff)
elf: Update GNU_PROPERTY_UINT32_[AND|OR]_XXX tests
1. Skip am33_2.0-*-* hppa*-*-hpux* mn10300-*-* since assembly source file for the HPPA assembler is renamed and modifed by sed. mn10300 has RELA relocations in .note.gnu.property section which elf_parse_notes doesn't support. 2. Pass --generate-missing-build-notes=no to assembler. 3. Allow other note sections for xtensa. * testsuite/ld-elf/property-and-1.d: Skip am33_2.0, hppa-hpux and mn10300. Pass --generate-missing-build-notes=no to assembler. Allow other note sections for xtensa. * testsuite/ld-elf/property-and-2.d: Likewise. * testsuite/ld-elf/property-and-3.d: Likewise. * testsuite/ld-elf/property-and-4.d: Likewise. * testsuite/ld-elf/property-or-1.d: Likewise. * testsuite/ld-elf/property-or-2.d: Likewise. * testsuite/ld-elf/property-or-3.d: Likewise. * testsuite/ld-elf/property-or-4.d: Likewise.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ld-elf/property-and-1.d11
-rw-r--r--ld/testsuite/ld-elf/property-and-2.d11
-rw-r--r--ld/testsuite/ld-elf/property-and-3.d11
-rw-r--r--ld/testsuite/ld-elf/property-and-4.d8
-rw-r--r--ld/testsuite/ld-elf/property-or-1.d8
-rw-r--r--ld/testsuite/ld-elf/property-or-2.d8
-rw-r--r--ld/testsuite/ld-elf/property-or-3.d8
-rw-r--r--ld/testsuite/ld-elf/property-or-4.d8
8 files changed, 65 insertions, 8 deletions
diff --git a/ld/testsuite/ld-elf/property-and-1.d b/ld/testsuite/ld-elf/property-and-1.d
index 480d16e370..bb7ca1516f 100644
--- a/ld/testsuite/ld-elf/property-and-1.d
+++ b/ld/testsuite/ld-elf/property-and-1.d
@@ -1,6 +1,15 @@
#source: empty.s
#source: property-and-1.s
-#as:
+#as: --generate-missing-build-notes=no
#ld: -shared
#readelf: -n
#xfail: ![check_shared_lib_support]
+#notarget: am33_2.0-*-* hppa*-*-hpux* mn10300-*-*
+# Assembly source file for the HPPA assembler is renamed and modifed by
+# sed. mn10300 has relocations in .note.gnu.property section which
+# elf_parse_notes doesn't support.
+
+#failif
+#...
+Displaying notes found in: .note.gnu.property
+#pass
diff --git a/ld/testsuite/ld-elf/property-and-2.d b/ld/testsuite/ld-elf/property-and-2.d
index 007ba482e6..20ce29a15a 100644
--- a/ld/testsuite/ld-elf/property-and-2.d
+++ b/ld/testsuite/ld-elf/property-and-2.d
@@ -1,7 +1,16 @@
#source: property-and-1.s
#source: empty.s
#source: property-and-2.s
-#as:
+#as: --generate-missing-build-notes=no
#ld: -shared
#readelf: -n
#xfail: ![check_shared_lib_support]
+#notarget: am33_2.0-*-* hppa*-*-hpux* mn10300-*-*
+# Assembly source file for the HPPA assembler is renamed and modifed by
+# sed. mn10300 has relocations in .note.gnu.property section which
+# elf_parse_notes doesn't support.
+
+#failif
+#...
+Displaying notes found in: .note.gnu.property
+#pass
diff --git a/ld/testsuite/ld-elf/property-and-3.d b/ld/testsuite/ld-elf/property-and-3.d
index 8d5e57915e..46f1c6ba9c 100644
--- a/ld/testsuite/ld-elf/property-and-3.d
+++ b/ld/testsuite/ld-elf/property-and-3.d
@@ -1,7 +1,16 @@
#source: property-and-1.s
#source: property-and-empty.s
#source: property-and-2.s
-#as:
+#as: --generate-missing-build-notes=no
#ld: -shared
#readelf: -n
#xfail: ![check_shared_lib_support]
+#notarget: am33_2.0-*-* hppa*-*-hpux* mn10300-*-*
+# Assembly source file for the HPPA assembler is renamed and modifed by
+# sed. mn10300 has relocations in .note.gnu.property section which
+# elf_parse_notes doesn't support.
+
+#failif
+#...
+Displaying notes found in: .note.gnu.property
+#pass
diff --git a/ld/testsuite/ld-elf/property-and-4.d b/ld/testsuite/ld-elf/property-and-4.d
index 84bf404383..8ab03d0e46 100644
--- a/ld/testsuite/ld-elf/property-and-4.d
+++ b/ld/testsuite/ld-elf/property-and-4.d
@@ -1,12 +1,18 @@
#source: property-and-1.s
#source: property-and-2.s
#source: property-and-3.s
-#as:
+#as: --generate-missing-build-notes=no
#ld: -shared
#readelf: -n
#xfail: ![check_shared_lib_support]
+#notarget: am33_2.0-*-* hppa*-*-hpux* mn10300-*-*
+# Assembly source file for the HPPA assembler is renamed and modifed by
+# sed. mn10300 has relocations in .note.gnu.property section which
+# elf_parse_notes doesn't support.
+#...
Displaying notes found in: .note.gnu.property
[ ]+Owner[ ]+Data size[ ]+Description
GNU 0x[0-9a-f]+ NT_GNU_PROPERTY_TYPE_0
Properties: UINT32_AND \(0xb0007fff\): 0x1
+#pass
diff --git a/ld/testsuite/ld-elf/property-or-1.d b/ld/testsuite/ld-elf/property-or-1.d
index f5392c42cf..bcc8da162c 100644
--- a/ld/testsuite/ld-elf/property-or-1.d
+++ b/ld/testsuite/ld-elf/property-or-1.d
@@ -1,11 +1,17 @@
#source: empty.s
#source: property-or-1.s
-#as:
+#as: --generate-missing-build-notes=no
#ld: -shared
#readelf: -n
#xfail: ![check_shared_lib_support]
+#notarget: am33_2.0-*-* hppa*-*-hpux* mn10300-*-*
+# Assembly source file for the HPPA assembler is renamed and modifed by
+# sed. mn10300 has relocations in .note.gnu.property section which
+# elf_parse_notes doesn't support.
+#...
Displaying notes found in: .note.gnu.property
[ ]+Owner[ ]+Data size[ ]+Description
GNU 0x[0-9a-f]+ NT_GNU_PROPERTY_TYPE_0
Properties: UINT32_OR \(0xb000ffff\): 0x3
+#pass
diff --git a/ld/testsuite/ld-elf/property-or-2.d b/ld/testsuite/ld-elf/property-or-2.d
index 85b754833c..7be3a25e8b 100644
--- a/ld/testsuite/ld-elf/property-or-2.d
+++ b/ld/testsuite/ld-elf/property-or-2.d
@@ -1,12 +1,18 @@
#source: property-or-1.s
#source: empty.s
#source: property-or-2.s
-#as:
+#as: --generate-missing-build-notes=no
#ld: -shared
#readelf: -n
#xfail: ![check_shared_lib_support]
+#notarget: am33_2.0-*-* hppa*-*-hpux* mn10300-*-*
+# Assembly source file for the HPPA assembler is renamed and modifed by
+# sed. mn10300 has relocations in .note.gnu.property section which
+# elf_parse_notes doesn't support.
+#...
Displaying notes found in: .note.gnu.property
[ ]+Owner[ ]+Data size[ ]+Description
GNU 0x[0-9a-f]+ NT_GNU_PROPERTY_TYPE_0
Properties: UINT32_OR \(0xb000ffff\): 0x103
+#pass
diff --git a/ld/testsuite/ld-elf/property-or-3.d b/ld/testsuite/ld-elf/property-or-3.d
index 2d687db4a6..34cb558c18 100644
--- a/ld/testsuite/ld-elf/property-or-3.d
+++ b/ld/testsuite/ld-elf/property-or-3.d
@@ -1,12 +1,18 @@
#source: property-or-1.s
#source: property-and-empty.s
#source: property-or-2.s
-#as:
+#as: --generate-missing-build-notes=no
#ld: -shared
#readelf: -n
#xfail: ![check_shared_lib_support]
+#notarget: am33_2.0-*-* hppa*-*-hpux* mn10300-*-*
+# Assembly source file for the HPPA assembler is renamed and modifed by
+# sed. mn10300 has relocations in .note.gnu.property section which
+# elf_parse_notes doesn't support.
+#...
Displaying notes found in: .note.gnu.property
[ ]+Owner[ ]+Data size[ ]+Description
GNU 0x[0-9a-f]+ NT_GNU_PROPERTY_TYPE_0
Properties: UINT32_OR \(0xb000ffff\): 0x103
+#pass
diff --git a/ld/testsuite/ld-elf/property-or-4.d b/ld/testsuite/ld-elf/property-or-4.d
index fee22b155c..3ef3f5385b 100644
--- a/ld/testsuite/ld-elf/property-or-4.d
+++ b/ld/testsuite/ld-elf/property-or-4.d
@@ -1,12 +1,18 @@
#source: property-or-1.s
#source: property-or-2.s
#source: property-or-3.s
-#as:
+#as: --generate-missing-build-notes=no
#ld: -shared
#readelf: -n
#xfail: ![check_shared_lib_support]
+#notarget: am33_2.0-*-* hppa*-*-hpux* mn10300-*-*
+# Assembly source file for the HPPA assembler is renamed and modifed by
+# sed. mn10300 has relocations in .note.gnu.property section which
+# elf_parse_notes doesn't support.
+#...
Displaying notes found in: .note.gnu.property
[ ]+Owner[ ]+Data size[ ]+Description
GNU 0x[0-9a-f]+ NT_GNU_PROPERTY_TYPE_0
Properties: UINT32_OR \(0xb000ffff\): 0x1103
+#pass