elf: Update GNU_PROPERTY_UINT32_[AND|OR]_XXX tests
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 19 Jun 2021 02:56:47 +0000 (19:56 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 19 Jun 2021 11:41:10 +0000 (04:41 -0700)
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.

ld/ChangeLog
ld/testsuite/ld-elf/property-and-1.d
ld/testsuite/ld-elf/property-and-2.d
ld/testsuite/ld-elf/property-and-3.d
ld/testsuite/ld-elf/property-and-4.d
ld/testsuite/ld-elf/property-or-1.d
ld/testsuite/ld-elf/property-or-2.d
ld/testsuite/ld-elf/property-or-3.d
ld/testsuite/ld-elf/property-or-4.d

index 0395aabde06f0a1a4335073996488be1fd758386..c84992d7633e3030122478f1f8f484066f622773 100644 (file)
@@ -1,3 +1,17 @@
+2021-06-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * 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.
+
 2021-06-18  H.J. Lu  <hongjiu.lu@intel.com>
 
        * ld.texi: Move -z unique-symbol after -z undefs.
index 480d16e37043fac1810ac1a2c5f43ca304424870..bb7ca1516f510d5b0c416b8ea61067d6a17a7492 100644 (file)
@@ -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
index 007ba482e65f9f9a6571683fbb7528a9ffb83ec6..20ce29a15afb642ee67534f6739e36f444bf0c7a 100644 (file)
@@ -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
index 8d5e57915efde8d0b1cdbf38628ee5ad33b936d1..46f1c6ba9cc6e197253cf0913ca716e30c30e177 100644 (file)
@@ -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
index 84bf404383fe69216b74f8bd1a5418727b78ca6a..8ab03d0e46edff16a5fdf42c18947f367164f348 100644 (file)
@@ -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
index f5392c42cf97e084166da227d3010c538db1cfe6..bcc8da162c496ead4082b3e5dd16fcf0a3a2f8c3 100644 (file)
@@ -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
index 85b754833cb6ee370df52cb72e89f27174756e8d..7be3a25e8b9764a0338cb3072513d58bfbb380d2 100644 (file)
@@ -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
index 2d687db4a61ff70d5b016a3da9b335849d9318a8..34cb558c18f61090ffea686043a63ff3acf33bb5 100644 (file)
@@ -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
index fee22b155c6607d9ff2803e52b6b37eb26bb8850..3ef3f5385bef6457db09a43536b96179efa5d146 100644 (file)
@@ -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