x86: Add explicit -mx86-used-note=[yes|no] to tests
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 31 Aug 2018 11:35:46 +0000 (04:35 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 31 Aug 2018 11:35:57 +0000 (04:35 -0700)
Pass explicit -mx86-used-note=[yes|no] to x86 assembler and update
expected outputs from "readelf -n" if needed.

binutils/

* testsuite/binutils-all/i386/compressed-1b.d: Pass
-mx86-used-note=no to assembler.
* testsuite/binutils-all/i386/compressed-1c.d: Likewise.
* testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
* testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
* testsuite/binutils-all/i386/empty.d: Pass -mx86-used-note=yes
to assembler and update expected output from "readelf -n".
* testsuite/binutils-all/i386/ibt.d: Likewise.
* testsuite/binutils-all/i386/pr21231a.d: Likewise.
* testsuite/binutils-all/i386/pr21231b.d: Likewise.
* testsuite/binutils-all/i386/shstk.d: Likewise.
* testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
* testsuite/binutils-all/x86-64/empty.d: Likewise.
* testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
* testsuite/binutils-all/x86-64/ibt.d: Likewise.
* testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
* testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
* testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
* testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
* testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
* testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
* testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
* testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
* testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
* testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
* testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
* testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
* testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
* testsuite/binutils-all/x86-64/shstk.d: Likewise.

gas/

* testsuite/gas/i386/bss.d: Pass -mx86-used-note=no to assembler.
* testsuite/gas/i386/ilp32/quad.d: Likewise.
* testsuite/gas/i386/ilp32/reloc64.d: Likewise.
* testsuite/gas/i386/ilp32/x86-64-size-1.d: Likewise.
* testsuite/gas/i386/ilp32/x86-64-size-3.d: Likewise.
* testsuite/gas/i386/ilp32/x86-64-size-5.d: Likewise.
* testsuite/gas/i386/ilp32/x86-64-unwind.d: Likewise.
* testsuite/gas/i386/property-1.d: Likewise.
* testsuite/gas/i386/relax.d: Likewise.
* testsuite/gas/i386/reloc64.d: Likewise.
* testsuite/gas/i386/size-1.d: Likewise.
* testsuite/gas/i386/size-3.d: Likewise.
* testsuite/gas/i386/x86-64-property-1.d: Likewise.
* testsuite/gas/i386/x86-64-size-1.d: Likewise.
* testsuite/gas/i386/x86-64-size-3.d: Likewise.
* testsuite/gas/i386/x86-64-size-5.d: Likewise.
* testsuite/gas/i386/x86-64-unwind.d: Likewise.
* testsuite/gas/i386/divide.d: Append "#pass".

ld/

* testsuite/ld-i386/i386.exp: (ASFLAGS): Save, append
-mx86-used-note=no and restore.  Pass -mx86-used-note=yes and
-mx86-used-note=no to assembler.
* testsuite/ld-x86-64/x86-64.exp: Likewise.
* testsuite/ld-i386/no-plt.exp: Pass -mx86-used-note=yes to
assembler.
* testsuite/ld-i386/tls.exp: Likewise.
* testsuite/ld-x86-64/no-plt.exp: Likewise.
* testsuite/ld-x86-64/tls.exp: Likewise.
* testsuite/ld-i386/pr23486a.d: Pass -mx86-used-note=no to
assembler.
* testsuite/ld-i386/pr23486b.d: Likewise.
* testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
* testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
* testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
* testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
* testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
* testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
* testsuite/ld-x86-64/pr23486a-x32.d: Likewise.
* testsuite/ld-x86-64/pr23486a.d: Likewise.
* testsuite/ld-x86-64/pr23486b-x32.d: Likewise.
* testsuite/ld-x86-64/pr23486b.d: Likewise.
* testsuite/ld-i386/property-x86-3.d: Pass -mx86-used-note=yes
to assembler and update expected output from "readelf -n".
* testsuite/ld-i386/property-x86-4a.d: Likewise.
* testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
* testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
* testsuite/ld-i386/property-x86-ibt2.d: Likewise.
* testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
* testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
* testsuite/ld-i386/property-x86-ibt4.d: Likewise.
* testsuite/ld-i386/property-x86-ibt5.d: Likewise.
* testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
* testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
* testsuite/ld-i386/property-x86-shstk2.d: Likewise.
* testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
* testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
* testsuite/ld-i386/property-x86-shstk4.d: Likewise.
* testsuite/ld-i386/property-x86-shstk5.d: Likewise.
* testsuite/ld-x86-64/property-x86-3-x32.d: Likewise.
* testsuite/ld-x86-64/property-x86-3.d: Likewise.
* testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
* testsuite/ld-x86-64/property-x86-4a.d: Likewise.
* testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
* testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
* testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
* testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
* testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
* testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
* testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
* testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
* testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
* testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
* testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
* testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
* testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
* testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
* testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
* testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
* testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
* testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
* testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
* testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
* testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
* testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
* testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
* testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
* testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
* testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
* testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
* testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
* testsuite/ld-i386/property-1a.r: New file.
* testsuite/ld-i386/property-2a.r: Likewise.
* testsuite/ld-i386/property-3a.r: Likewise.
* testsuite/ld-i386/property-4a.r: Likewise.
* testsuite/ld-i386/property-5a.r: Likewise.
* testsuite/ld-i386/property-7a.r: Likewise.
* testsuite/ld-x86-64/property-1a.r: Likewise.
* testsuite/ld-x86-64/property-2a.r: Likewise.
* testsuite/ld-x86-64/property-3a.r: Likewise.
* testsuite/ld-x86-64/property-4a.r: Likewise.
* testsuite/ld-x86-64/property-5a.r: Likewise.
* testsuite/ld-x86-64/property-7a.r: Likewise.
* testsuite/ld-x86-64/mpx.exp: Pass -mx86-used-note=no to
assembler.

127 files changed:
binutils/ChangeLog
binutils/testsuite/binutils-all/i386/compressed-1b.d
binutils/testsuite/binutils-all/i386/compressed-1c.d
binutils/testsuite/binutils-all/i386/empty.d
binutils/testsuite/binutils-all/i386/ibt.d
binutils/testsuite/binutils-all/i386/pr21231a.d
binutils/testsuite/binutils-all/i386/pr21231b.d
binutils/testsuite/binutils-all/i386/shstk.d
binutils/testsuite/binutils-all/x86-64/compressed-1b.d
binutils/testsuite/binutils-all/x86-64/compressed-1c.d
binutils/testsuite/binutils-all/x86-64/empty-x32.d
binutils/testsuite/binutils-all/x86-64/empty.d
binutils/testsuite/binutils-all/x86-64/ibt-x32.d
binutils/testsuite/binutils-all/x86-64/ibt.d
binutils/testsuite/binutils-all/x86-64/pr21231a.d
binutils/testsuite/binutils-all/x86-64/pr21231b.d
binutils/testsuite/binutils-all/x86-64/pr23494a-x32.d
binutils/testsuite/binutils-all/x86-64/pr23494a.d
binutils/testsuite/binutils-all/x86-64/pr23494b-x32.d
binutils/testsuite/binutils-all/x86-64/pr23494b.d
binutils/testsuite/binutils-all/x86-64/pr23494c-x32.d
binutils/testsuite/binutils-all/x86-64/pr23494c.d
binutils/testsuite/binutils-all/x86-64/pr23494d-x32.d
binutils/testsuite/binutils-all/x86-64/pr23494d.d
binutils/testsuite/binutils-all/x86-64/pr23494e-x32.d
binutils/testsuite/binutils-all/x86-64/pr23494e.d
binutils/testsuite/binutils-all/x86-64/shstk-x32.d
binutils/testsuite/binutils-all/x86-64/shstk.d
gas/ChangeLog
gas/testsuite/gas/i386/bss.d
gas/testsuite/gas/i386/divide.d
gas/testsuite/gas/i386/ilp32/quad.d
gas/testsuite/gas/i386/ilp32/reloc64.d
gas/testsuite/gas/i386/ilp32/x86-64-size-1.d
gas/testsuite/gas/i386/ilp32/x86-64-size-3.d
gas/testsuite/gas/i386/ilp32/x86-64-size-5.d
gas/testsuite/gas/i386/ilp32/x86-64-unwind.d
gas/testsuite/gas/i386/property-1.d
gas/testsuite/gas/i386/relax.d
gas/testsuite/gas/i386/reloc64.d
gas/testsuite/gas/i386/size-1.d
gas/testsuite/gas/i386/size-3.d
gas/testsuite/gas/i386/x86-64-property-1.d
gas/testsuite/gas/i386/x86-64-size-1.d
gas/testsuite/gas/i386/x86-64-size-3.d
gas/testsuite/gas/i386/x86-64-size-5.d
gas/testsuite/gas/i386/x86-64-unwind.d
ld/ChangeLog
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-i386/no-plt.exp
ld/testsuite/ld-i386/pr23486a.d
ld/testsuite/ld-i386/pr23486b.d
ld/testsuite/ld-i386/property-1a.r [new file with mode: 0644]
ld/testsuite/ld-i386/property-2a.r [new file with mode: 0644]
ld/testsuite/ld-i386/property-3a.r [new file with mode: 0644]
ld/testsuite/ld-i386/property-4a.r [new file with mode: 0644]
ld/testsuite/ld-i386/property-5a.r [new file with mode: 0644]
ld/testsuite/ld-i386/property-7a.r [new file with mode: 0644]
ld/testsuite/ld-i386/property-x86-3.d
ld/testsuite/ld-i386/property-x86-4a.d
ld/testsuite/ld-i386/property-x86-ibt1a.d
ld/testsuite/ld-i386/property-x86-ibt1b.d
ld/testsuite/ld-i386/property-x86-ibt2.d
ld/testsuite/ld-i386/property-x86-ibt3a.d
ld/testsuite/ld-i386/property-x86-ibt3b.d
ld/testsuite/ld-i386/property-x86-ibt4.d
ld/testsuite/ld-i386/property-x86-ibt5.d
ld/testsuite/ld-i386/property-x86-shstk1a.d
ld/testsuite/ld-i386/property-x86-shstk1b.d
ld/testsuite/ld-i386/property-x86-shstk2.d
ld/testsuite/ld-i386/property-x86-shstk3a.d
ld/testsuite/ld-i386/property-x86-shstk3b.d
ld/testsuite/ld-i386/property-x86-shstk4.d
ld/testsuite/ld-i386/property-x86-shstk5.d
ld/testsuite/ld-i386/tls.exp
ld/testsuite/ld-x86-64/bnd-branch-1-now.d
ld/testsuite/ld-x86-64/bnd-ifunc-1-now.d
ld/testsuite/ld-x86-64/bnd-ifunc-2-now.d
ld/testsuite/ld-x86-64/bnd-ifunc-2.d
ld/testsuite/ld-x86-64/bnd-plt-1-now.d
ld/testsuite/ld-x86-64/bnd-plt-1.d
ld/testsuite/ld-x86-64/mpx.exp
ld/testsuite/ld-x86-64/no-plt.exp
ld/testsuite/ld-x86-64/pr23486a-x32.d
ld/testsuite/ld-x86-64/pr23486a.d
ld/testsuite/ld-x86-64/pr23486b-x32.d
ld/testsuite/ld-x86-64/pr23486b.d
ld/testsuite/ld-x86-64/property-1a.r [new file with mode: 0644]
ld/testsuite/ld-x86-64/property-2a.r [new file with mode: 0644]
ld/testsuite/ld-x86-64/property-3a.r [new file with mode: 0644]
ld/testsuite/ld-x86-64/property-4a.r [new file with mode: 0644]
ld/testsuite/ld-x86-64/property-5a.r [new file with mode: 0644]
ld/testsuite/ld-x86-64/property-7a.r [new file with mode: 0644]
ld/testsuite/ld-x86-64/property-x86-3-x32.d
ld/testsuite/ld-x86-64/property-x86-3.d
ld/testsuite/ld-x86-64/property-x86-4a-x32.d
ld/testsuite/ld-x86-64/property-x86-4a.d
ld/testsuite/ld-x86-64/property-x86-ibt1a-x32.d
ld/testsuite/ld-x86-64/property-x86-ibt1a.d
ld/testsuite/ld-x86-64/property-x86-ibt1b-x32.d
ld/testsuite/ld-x86-64/property-x86-ibt1b.d
ld/testsuite/ld-x86-64/property-x86-ibt2-x32.d
ld/testsuite/ld-x86-64/property-x86-ibt2.d
ld/testsuite/ld-x86-64/property-x86-ibt3a-x32.d
ld/testsuite/ld-x86-64/property-x86-ibt3a.d
ld/testsuite/ld-x86-64/property-x86-ibt3b-x32.d
ld/testsuite/ld-x86-64/property-x86-ibt3b.d
ld/testsuite/ld-x86-64/property-x86-ibt4-x32.d
ld/testsuite/ld-x86-64/property-x86-ibt4.d
ld/testsuite/ld-x86-64/property-x86-ibt5-x32.d
ld/testsuite/ld-x86-64/property-x86-ibt5.d
ld/testsuite/ld-x86-64/property-x86-shstk1a-x32.d
ld/testsuite/ld-x86-64/property-x86-shstk1a.d
ld/testsuite/ld-x86-64/property-x86-shstk1b-x32.d
ld/testsuite/ld-x86-64/property-x86-shstk1b.d
ld/testsuite/ld-x86-64/property-x86-shstk2-x32.d
ld/testsuite/ld-x86-64/property-x86-shstk2.d
ld/testsuite/ld-x86-64/property-x86-shstk3a-x32.d
ld/testsuite/ld-x86-64/property-x86-shstk3a.d
ld/testsuite/ld-x86-64/property-x86-shstk3b-x32.d
ld/testsuite/ld-x86-64/property-x86-shstk3b.d
ld/testsuite/ld-x86-64/property-x86-shstk4-x32.d
ld/testsuite/ld-x86-64/property-x86-shstk4.d
ld/testsuite/ld-x86-64/property-x86-shstk5-x32.d
ld/testsuite/ld-x86-64/property-x86-shstk5.d
ld/testsuite/ld-x86-64/tls.exp
ld/testsuite/ld-x86-64/x86-64.exp

index a3d1354375086bf3c1e09792a78a185168636bbf..99f76cd3c2c1c2e44419707b0ae62de52be8e8de 100644 (file)
@@ -1,3 +1,35 @@
+2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/binutils-all/i386/compressed-1b.d: Pass
+       -mx86-used-note=no to assembler.
+       * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
+       * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
+       * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
+       * testsuite/binutils-all/i386/empty.d: Pass -mx86-used-note=yes
+       to assembler and update expected output from "readelf -n".
+       * testsuite/binutils-all/i386/ibt.d: Likewise.
+       * testsuite/binutils-all/i386/pr21231a.d: Likewise.
+       * testsuite/binutils-all/i386/pr21231b.d: Likewise.
+       * testsuite/binutils-all/i386/shstk.d: Likewise.
+       * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
+       * testsuite/binutils-all/x86-64/empty.d: Likewise.
+       * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
+       * testsuite/binutils-all/x86-64/ibt.d: Likewise.
+       * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
+       * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
+       * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
+       * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
+       * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
+       * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
+       * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
+       * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
+       * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
+       * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
+       * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
+       * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
+       * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
+       * testsuite/binutils-all/x86-64/shstk.d: Likewise.
+
 2018-08-30  H.J. Lu  <hongjiu.lu@intel.com>
 
        * readelf.c (process_section_headers): Treat SHT_FINI_ARRAY and
index d74af4d160cc3d8c4005a35d86f11dcd1bd188b5..9ed82caf60fb550682b1241b365bb0ca73346af5 100644 (file)
@@ -1,6 +1,6 @@
 #PROG: strip
 #source: compressed-1.s
-#as: --32
+#as: --32 -mx86-used-note=no
 #strip:
 #readelf: -S --wide
 #name: strip on uncompressed debug sections
index 3a0cba50694d9b95875c67de238b9214218f9167..dc96dd7dcf6cbfe297b2d65501a217aa2269c07a 100644 (file)
@@ -1,6 +1,6 @@
 #PROG: strip
 #source: compressed-1.s
-#as: --32 --compress-debug-sections
+#as: --32 --compress-debug-sections -mx86-used-note=no
 #strip:
 #readelf: -S --wide
 #name: strip on compressed debug sections
index 5f4cc5632e37dff57ec847ed3d9c997803a9e787..809280f73f87178fc356100b6665ed10a63cb345 100644 (file)
@@ -1,5 +1,5 @@
 #PROG: objcopy
-#as: --32
+#as: --32 -mx86-used-note=yes
 #objcopy:
 #readelf: -n
 
@@ -7,3 +7,6 @@ Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
   GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: 
+  GNU                  0x00000018      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index dfd76760029a55b919cd88c9c98cc58812f09de8..59f04c26ec506eadc815d82d5ac042cd7225a0ae 100644 (file)
@@ -1,5 +1,5 @@
 #PROG: objcopy
-#as: --32
+#as: --32 -mx86-used-note=yes
 #objcopy:
 #readelf: -n
 
@@ -7,3 +7,6 @@ Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
   GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: IBT
+  GNU                  0x00000018      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index 7c13b85f57e959094ccb8b3e29baed85a05844e2..a585703311bd460e2efb3000dec972fddedb8a86 100644 (file)
@@ -1,5 +1,5 @@
 #PROG: objcopy
-#as: --32
+#as: --32 -mx86-used-note=yes
 #objcopy:
 #readelf: -n
 
@@ -7,3 +7,6 @@ Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
   GNU                  0x00000008      NT_GNU_PROPERTY_TYPE_0
       Properties: no copy on protected 
+  GNU                  0x00000018      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index 3fad846e738578fcb0e70dd8955604af8e772f79..044a596cd71d98551f222ce597ab1799842660ad 100644 (file)
@@ -1,5 +1,5 @@
 #PROG: objcopy
-#as: --32
+#as: --32 -mx86-used-note=yes
 #objcopy:
 #readelf: -n
 
@@ -10,3 +10,6 @@ Displaying notes found in: .note.gnu.property
        no copy on protected 
        x86 ISA used: CMOV, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, AVX, AVX2, FMA, AVX512F, AVX512CD, AVX512ER, AVX512PF, AVX512VL, AVX512DQ, AVX512BW, AVX512_4FMAPS, AVX512_4VNNIW, AVX512_BITALG, AVX512_IFMA, AVX512_VBMI, AVX512_VBMI2, AVX512_VNNI, <unknown: 1000000>, <unknown: 2000000>, <unknown: 4000000>, <unknown: 8000000>, <unknown: 10000000>, <unknown: 20000000>, <unknown: 40000000>
        x86 ISA needed: CMOV, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, AVX, AVX2, FMA, AVX512F, AVX512CD, AVX512ER, AVX512PF, AVX512VL, AVX512DQ
+  GNU                  0x00000018      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index 933704cf913d705bbc7b7c542132501fc270ab71..4597818e6d896b759174ab347c91ac0eba861307 100644 (file)
@@ -1,5 +1,5 @@
 #PROG: objcopy
-#as: --32
+#as: --32 -mx86-used-note=yes
 #objcopy:
 #readelf: -n
 
@@ -7,3 +7,6 @@ Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
   GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: SHSTK
+  GNU                  0x00000018      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index 040bdd3a670e53a7f6b9246f780f5025241219ae..c041a5326002bf78d31d033dbeb24d702f19005e 100644 (file)
@@ -1,6 +1,6 @@
 #PROG: strip
 #source: compressed-1.s
-#as: --64
+#as: --64 -mx86-used-note=no
 #strip:
 #readelf: -S --wide
 #name: strip on uncompressed debug sections
index 96eb6d46c61bde186cef3f5884c60a8604ba55a1..2039cd676ea49f1b6005e54a12eda7204d796e07 100644 (file)
@@ -1,6 +1,6 @@
 #PROG: strip
 #source: compressed-1.s
-#as: --64 --compress-debug-sections
+#as: --64 --compress-debug-sections -mx86-used-note=no
 #strip:
 #readelf: -S --wide
 #name: strip on compressed debug sections
index 4193818a91e09e8aec605d079f719b3e38590360..f6503746e83bc13a733cabdccd0d88f3f5d8aaa5 100644 (file)
@@ -1,6 +1,6 @@
 #source: empty.s
 #PROG: objcopy
-#as: --x32
+#as: --x32 -mx86-used-note=yes
 #objcopy:
 #readelf: -n
 
@@ -8,3 +8,6 @@ Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
   GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: 
+  GNU                  0x00000018      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index 777efbb1e0597790cc38c93b1df93e4e1ad16fdf..30a2ea48308213c038b22c78c6fb8fb1476ff56f 100644 (file)
@@ -1,5 +1,5 @@
 #PROG: objcopy
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
 #objcopy:
 #readelf: -n
 
@@ -7,3 +7,6 @@ Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
   GNU                  0x00000010      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: 
+  GNU                  0x00000020      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index 5be7c98e076e1bce9929f3a3a582324b79a472ea..f749b13fc854c2b0242c83a8083dcbf52d605909 100644 (file)
@@ -1,6 +1,6 @@
 #source: ibt.s
 #PROG: objcopy
-#as: --x32
+#as: --x32 -mx86-used-note=yes
 #objcopy:
 #readelf: -n
 
@@ -8,3 +8,6 @@ Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
   GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: IBT
+  GNU                  0x00000018      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index 7bedff50325cade1f7e65b9f57f7f8d95c94449f..bf76db5c41245870dba4926c1b4576400c2a50b6 100644 (file)
@@ -1,5 +1,5 @@
 #PROG: objcopy
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
 #objcopy:
 #readelf: -n
 
@@ -7,3 +7,6 @@ Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
   GNU                  0x00000010      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: IBT
+  GNU                  0x00000020      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index 2a000483e8e2b96cd357d66dff0234352ff085fd..490864eb122d4fd27fa2f56865315201e3bef93a 100644 (file)
@@ -1,5 +1,5 @@
 #PROG: objcopy
-#as: --64
+#as: --64 -mx86-used-note=yes
 #objcopy:
 #readelf: -n
 
@@ -7,3 +7,6 @@ Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
   GNU                  0x00000008      NT_GNU_PROPERTY_TYPE_0
       Properties: no copy on protected 
+  GNU                  0x00000020      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index 150a8ca7d4adaeac8a7c504e6b0384d4c00d7e84..7ee42d5dd16d58f25a52c9612481ac078b32d006 100644 (file)
@@ -1,5 +1,5 @@
 #PROG: objcopy
-#as: --64
+#as: --64 -mx86-used-note=yes
 #objcopy:
 #readelf: -n
 
@@ -10,3 +10,6 @@ Displaying notes found in: .note.gnu.property
        no copy on protected 
        x86 ISA used: CMOV, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, AVX, AVX2, FMA, AVX512F, AVX512CD, AVX512ER, AVX512PF, AVX512VL, AVX512DQ, AVX512BW, AVX512_4FMAPS, AVX512_4VNNIW, AVX512_BITALG, AVX512_IFMA, AVX512_VBMI, AVX512_VBMI2, AVX512_VNNI, <unknown: 1000000>, <unknown: 2000000>, <unknown: 4000000>, <unknown: 8000000>, <unknown: 10000000>, <unknown: 20000000>, <unknown: 40000000>
        x86 ISA needed: CMOV, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, AVX, AVX2, FMA, AVX512F, AVX512CD, AVX512ER, AVX512PF, AVX512VL, AVX512DQ
+  GNU                  0x00000020      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index ad8f9b16c3f28c7af206796250f8094966e0bbd8..cba5a3f69b50a3cb79d99b48b99925cd8618e015 100644 (file)
@@ -1,12 +1,13 @@
 #source: pr23494a.s
 #PROG: objcopy
-#as: --x32
+#as: --x32 -mx86-used-note=yes
 #objcopy: -O elf64-x86-64
 #readelf: -n
 #not-target: x86_64-*-nacl*
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x00000020      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000030      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 ISA needed: SSE4_1, AVX
        x86 ISA used: SSE, SSE3, SSE4_1, AVX
+       x86 feature used: x86
index 32e296ff1364b8532f11d1012ad5f6595038bf2e..3638ce0b73d0cfd996dd7455dae8d0b90817a649 100644 (file)
@@ -1,12 +1,13 @@
 #source: pr23494a.s
 #PROG: objcopy
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
 #objcopy: -O elf32-x86-64
 #readelf: -n
 #not-target: x86_64-*-nacl*
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x00000018      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 ISA needed: SSE4_1, AVX
        x86 ISA used: SSE, SSE3, SSE4_1, AVX
+       x86 feature used: x86
index f923e2fad6870d0c92291227b2ada45338d5d592..9082650419bc394a25521be4c7d53dac94c0c1be 100644 (file)
@@ -1,6 +1,6 @@
 #source: pr23494a.s
 #PROG: objcopy
-#as: --x32
+#as: --x32 -mx86-used-note=yes
 #objcopy: -O elf64-x86-64 -R .note.gnu.property
 #readelf: -n
 #not-target: x86_64-*-nacl*
index 4916be08ad02263468f84f2a7d2a4b6ae0e96c3e..b0ded581f6def2b03d1c95da6d262aa4c04b7baa 100644 (file)
@@ -1,6 +1,6 @@
 #source: pr23494a.s
 #PROG: objcopy
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
 #objcopy: -O elf32-x86-64 -R .note.gnu.property
 #readelf: -n
 #not-target: x86_64-*-nacl*
index 761c1371e376ed8443d014336343aa3d0e160041..52a16ae3d764f5bb78dc04764c9785df2654921c 100644 (file)
@@ -1,6 +1,6 @@
 #source: pr23494b.s
 #PROG: objcopy
-#as: --x32
+#as: --x32 -mx86-used-note=no
 #objcopy: -O elf64-x86-64
 #readelf: -n
 #not-target: x86_64-*-nacl*
index e98b2ae20127e7aa07dcf6d3604b73fb6b470045..8ff87e2a05cb5936c2feee9516c7b27f63c24044 100644 (file)
@@ -1,6 +1,6 @@
 #source: pr23494b.s
 #PROG: objcopy
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=no
 #objcopy: -O elf32-x86-64
 #readelf: -n
 #not-target: x86_64-*-nacl*
index b0af2d99085087fe62b76ca58c35983f68718eb5..5f42bd593bc006696244f1dabf32e6074b85eb9c 100644 (file)
@@ -1,12 +1,13 @@
 #PROG: objcopy
 #source: pr23494a.s
-#as: --x32
+#as: --x32 -mx86-used-note=yes
 #objcopy: -O elf64-x86-64 --decompress-debug-sections
 #readelf: -n
 #not-target: x86_64-*-nacl*
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x00000020      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000030      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 ISA needed: SSE4_1, AVX
        x86 ISA used: SSE, SSE3, SSE4_1, AVX
+       x86 feature used: x86
index 1731c03a929206ab243e1ddc81bd80cea02e7c1e..8190327859f02c9a1de75ca0db42c8316b4d63b5 100644 (file)
@@ -1,12 +1,13 @@
 #PROG: objcopy
 #source: pr23494a.s
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
 #objcopy: -O elf32-x86-64 --decompress-debug-sections
 #readelf: -n
 #not-target: x86_64-*-nacl*
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x00000018      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 ISA needed: SSE4_1, AVX
        x86 ISA used: SSE, SSE3, SSE4_1, AVX
+       x86 feature used: x86
index 4adfb4aa3bc719c961b43a4e03aebcd6453e6c2a..63cd9f0d6c5cdd12c219af7c2fa3f222579bbb58 100644 (file)
@@ -1,13 +1,14 @@
 #PROG: objcopy
 #source: pr23494c.s
-#as: --x32
+#as: --x32 -mx86-used-note=yes
 #objcopy: -O elf64-x86-64 --decompress-debug-sections
 #readelf: -n
 #not-target: x86_64-*-nacl*
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x00000030      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000040      NT_GNU_PROPERTY_TYPE_0
       Properties: stack size: 0xffffffff
        x86 ISA needed: SSE4_1, AVX
        x86 ISA used: SSE, SSE3, SSE4_1, AVX
+       x86 feature used: x86
index d9b05388bb978f36cf9a6b474a83ad98bbd7e934..e60f2626c19bac58cc22e6c3c442f44afb7c435b 100644 (file)
@@ -1,13 +1,14 @@
 #PROG: objcopy
 #source: pr23494c.s
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
 #objcopy: -O elf32-x86-64 --decompress-debug-sections
 #readelf: -n
 #not-target: x86_64-*-nacl*
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000030      NT_GNU_PROPERTY_TYPE_0
       Properties: stack size: 0xffffffff
        x86 ISA needed: SSE4_1, AVX
        x86 ISA used: SSE, SSE3, SSE4_1, AVX
+       x86 feature used: x86
index 1dfc4fd0c89a536751e5af764f32bd4f4af3e08e..7fc5eac175d69168136000bd4fb12f3af1d2b19b 100644 (file)
@@ -1,6 +1,6 @@
 #source: shstk.s
 #PROG: objcopy
-#as: --x32
+#as: --x32 -mx86-used-note=yes
 #objcopy:
 #readelf: -n
 
@@ -8,3 +8,6 @@ Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
   GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: SHSTK
+  GNU                  0x00000018      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index 1f131b8c66c7ca1b69dc6fbb4231fdeb7124acb8..0995d2824387c6503b3376946800c656bf97725d 100644 (file)
@@ -1,5 +1,5 @@
 #PROG: objcopy
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
 #objcopy:
 #readelf: -n
 
@@ -7,3 +7,6 @@ Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
   GNU                  0x00000010      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: SHSTK
+  GNU                  0x00000020      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index 2c0ac5889ee9efec894f819227f678fb36bba691..582bbd265694c05d85ca6b5e85252d9591ea175d 100644 (file)
@@ -1,3 +1,24 @@
+2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/gas/i386/bss.d: Pass -mx86-used-note=no to assembler.
+       * testsuite/gas/i386/ilp32/quad.d: Likewise.
+       * testsuite/gas/i386/ilp32/reloc64.d: Likewise.
+       * testsuite/gas/i386/ilp32/x86-64-size-1.d: Likewise.
+       * testsuite/gas/i386/ilp32/x86-64-size-3.d: Likewise.
+       * testsuite/gas/i386/ilp32/x86-64-size-5.d: Likewise.
+       * testsuite/gas/i386/ilp32/x86-64-unwind.d: Likewise.
+       * testsuite/gas/i386/property-1.d: Likewise.
+       * testsuite/gas/i386/relax.d: Likewise.
+       * testsuite/gas/i386/reloc64.d: Likewise.
+       * testsuite/gas/i386/size-1.d: Likewise.
+       * testsuite/gas/i386/size-3.d: Likewise.
+       * testsuite/gas/i386/x86-64-property-1.d: Likewise.
+       * testsuite/gas/i386/x86-64-size-1.d: Likewise.
+       * testsuite/gas/i386/x86-64-size-3.d: Likewise.
+       * testsuite/gas/i386/x86-64-size-5.d: Likewise.
+       * testsuite/gas/i386/x86-64-unwind.d: Likewise.
+       * testsuite/gas/i386/divide.d: Append "#pass".
+
 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
 
        * NEWS: Mention -mx86-used-note=[no|yes].
index ba7493032c8e55148e73373f78fb23ed632016cc..cf5281407676606b31ff75431ad9d1b1a8696bb3 100644 (file)
@@ -1,3 +1,4 @@
+#as: -mx86-used-note=no
 #objdump: -s
 #name: i386 .bss
 
index 108742646508864c211270903afd435f82f04425..ba5970997c73528ac0de7ee41667168701443bca 100644 (file)
@@ -7,3 +7,4 @@
 Contents of section .*
  0000 01000000 02000000 03000000 04000000 .*
  0010 05000000 .*
+#pass
index f337baec7577aac94ac6b1dbb1b615fb38d8bdda..94f7b5ae4bcfa41fd95c34cb9a53cf67de46776b 100644 (file)
@@ -1,3 +1,4 @@
+#as: -mx86-used-note=no
 #objdump: -sr
 #name: x86-64 (ILP32) quad
 
index f6bc6284484cb36106bef8dd4822941391266933..5865ab0ae14b0ef67a3cd81e68c15e7e53f5080f 100644 (file)
@@ -1,3 +1,4 @@
+#as: -mx86-used-note=no
 #objdump: -Drw
 #name: x86-64 (ILP32) relocs
 
index 0b956d90b6cb93c136d98e75810781f268e3b8f1..874debb17e4e70ccb610f9e3bcb8aafd92b92495 100644 (file)
@@ -1,3 +1,4 @@
+#as: -mx86-used-note=no
 #name: x32 size 1
 #source: ../size-1.s
 #readelf: -r
index a1169d6fe63985bfa35a5d4de018315b522bb958..7008e5a1879387407151c97d7472378e52637990 100644 (file)
@@ -1,3 +1,4 @@
+#as: -mx86-used-note=no
 #name: x32 size 3
 #source: ../size-3.s
 #readelf: -r
index f4eb0d6949ebffdf70176f441c154326199d5d1f..c47d1df8247349fe01310dbdd502f98283fe9b82 100644 (file)
@@ -1,3 +1,4 @@
+#as: -mx86-used-note=no
 #name: x32 size 5
 #source: ../x86-64-size-5.s
 #readelf: -r
index 5dc74d6cab28691df2d1669384bc537272a54572..8fa6c3791b597942ef7ecde47122ce9ed623d405 100644 (file)
@@ -1,3 +1,4 @@
+#as: -mx86-used-note=no
 #source: ../x86-64-unwind.s
 #readelf: -S
 #name: x86-64 (ILP32) unwind
index 3a4530bc5d768142c326091115d4ef6baa7a9631..5a9bec7219db4d1c18ab9db490f6fc8e51d30c10 100644 (file)
@@ -1,4 +1,5 @@
 #name: i386 property 1
+#as: -mx86-used-note=no
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
index 7eb5cec255c8af4fc19e2aa70d171c0aaf9f744c..83b7d894cd8771721af4fa043dff88202b16850a 100644 (file)
@@ -1,3 +1,4 @@
+#as: -mx86-used-note=no
 #name: i386 relax
 #objdump: -s
 
index 4cf884dc7bd1ea693031097c4df9fe110df122f6..59e02b4800b264a2e534ea988adb21659819d85f 100644 (file)
@@ -1,3 +1,4 @@
+#as: -mx86-used-note=no
 #objdump: -Drw
 #name: x86-64 relocs
 
index ba45fa7ff364a622888501dd58d1be1a6fc18e50..3eb5a7ffb5092437060dc4c4a3b29c752d8a3758 100644 (file)
@@ -1,3 +1,4 @@
+#as: -mx86-used-note=no
 #name: i386 size 1
 #readelf: -r
 
index 042bfe7d88e7379145f09ae996bc85ad96ab18a0..d79db27b414fc7c30e4a2144045cea806e3177ed 100644 (file)
@@ -1,3 +1,4 @@
+#as: -mx86-used-note=no
 #name: i386 size 3
 #readelf: -r
 
index 5fc1c858b376bbeccb3ed44c07533fe99e1e19a2..966793ea9dc7b4e428965c3e699ac128169ef636 100644 (file)
@@ -1,6 +1,6 @@
 #name: x86-64 property 1
 #source: property-1.s
-#as: -defsym __64_bit__=1
+#as: -mx86-used-note=no -defsym __64_bit__=1
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
index d615bd3eaaced9e6813d00f4b99d56b06f7513f5..0eb3e5062a796e0dc7ae3130ccbb6d64ccb65e0c 100644 (file)
@@ -1,3 +1,4 @@
+#as: -mx86-used-note=no
 #name: x86-64 size 1
 #source: size-1.s
 #readelf: -r
index c28d69523b2698609d5704a4c2238c5254627a2e..16e0936d69aae5b0460e2d27ccd9e85a978e87e5 100644 (file)
@@ -1,3 +1,4 @@
+#as: -mx86-used-note=no
 #name: x86-64 size 3
 #source: size-3.s
 #readelf: -r
index 791fb5689f18d012794d34768d3bf1b07dca76aa..c1e7fcf4eed86290bbc9d54bff94175059c5cc57 100644 (file)
@@ -1,3 +1,4 @@
+#as: -mx86-used-note=no
 #name: x86-64 size 5
 #readelf: -r
 
index 89f1a65d07305e4e324b97451572872e001398e6..93b84a88f1be0474865553d1931bc59ac46254ca 100644 (file)
@@ -1,3 +1,4 @@
+#as: -mx86-used-note=no
 #readelf: -S
 #name: x86-64 unwind
 
index be694986da1f58681156bba604363378720f2bab..3a0f6a8355931c50b05c275cddedbbf6fa7973c0 100644 (file)
@@ -1,3 +1,91 @@
+2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-i386/i386.exp: (ASFLAGS): Save, append
+       -mx86-used-note=no and restore.  Pass -mx86-used-note=yes and
+       -mx86-used-note=no to assembler.
+       * testsuite/ld-x86-64/x86-64.exp: Likewise.
+       * testsuite/ld-i386/no-plt.exp: Pass -mx86-used-note=yes to
+       assembler.
+       * testsuite/ld-i386/tls.exp: Likewise.
+       * testsuite/ld-x86-64/no-plt.exp: Likewise.
+       * testsuite/ld-x86-64/tls.exp: Likewise.
+       * testsuite/ld-i386/pr23486a.d: Pass -mx86-used-note=no to
+       assembler.
+       * testsuite/ld-i386/pr23486b.d: Likewise.
+       * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
+       * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
+       * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
+       * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
+       * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
+       * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
+       * testsuite/ld-x86-64/pr23486a-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr23486a.d: Likewise.
+       * testsuite/ld-x86-64/pr23486b-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr23486b.d: Likewise.
+       * testsuite/ld-i386/property-x86-3.d: Pass -mx86-used-note=yes
+       to assembler and update expected output from "readelf -n".
+       * testsuite/ld-i386/property-x86-4a.d: Likewise.
+       * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
+       * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
+       * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
+       * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
+       * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
+       * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
+       * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
+       * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
+       * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
+       * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
+       * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
+       * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
+       * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
+       * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-3-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-3.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
+       * testsuite/ld-i386/property-1a.r: New file.
+       * testsuite/ld-i386/property-2a.r: Likewise.
+       * testsuite/ld-i386/property-3a.r: Likewise.
+       * testsuite/ld-i386/property-4a.r: Likewise.
+       * testsuite/ld-i386/property-5a.r: Likewise.
+       * testsuite/ld-i386/property-7a.r: Likewise.
+       * testsuite/ld-x86-64/property-1a.r: Likewise.
+       * testsuite/ld-x86-64/property-2a.r: Likewise.
+       * testsuite/ld-x86-64/property-3a.r: Likewise.
+       * testsuite/ld-x86-64/property-4a.r: Likewise.
+       * testsuite/ld-x86-64/property-5a.r: Likewise.
+       * testsuite/ld-x86-64/property-7a.r: Likewise.
+       * testsuite/ld-x86-64/mpx.exp: Pass -mx86-used-note=no to
+       assembler.
+
 2018-08-29  Chenghua Xu  <paul.hua.gm@gmail.com>
 
        * testsuite/ld-mips-elf/mips-elf-flags.exp: Run good_combination
index 8a5bdf0cfe585f060a88c95dc726ad69282bcecd..703c327ce1c74addf4977965f685e1c8c94ad463 100644 (file)
 # MA 02110-1301, USA.
 #
 
+global ASFLAGS
+set saved_ASFLAGS "$ASFLAGS"
+if { [is_elf_format] \
+     && ([istarget "i?86-*-*"] || [istarget "x86_64-*-*"]) } {
+    set ASFLAGS "$ASFLAGS -mx86-used-note=no"
+}
+
 # Test i386 linking; all types of relocs.  This tests the assembler and
 # tools like objdump as well as the linker.
 
@@ -213,25 +220,29 @@ set i386tests {
      "--32" {tlsie1.s}
      {{objdump -dwr tlsie1.dd}} "tlsie1"}
     {"PR ld/17313 (1)" "-melf_i386" ""
-     "--32" {zero.s} {} ""}
+     "--32 -mx86-used-note=yes" {zero.s} {} ""}
     {"PR ld/17313 (2)" "-melf_i386 -shared --just-symbols=tmpdir/zero.o" ""
-     "--32" {lea1.s} {} "libpr17313.so"}
+     "--32 -mx86-used-note=yes" {lea1.s} {} "libpr17313.so"}
     {"PR ld/17306 (1)" "-melf_i386" ""
-     "--32" {pr17306b.s} {} ""}
+     "--32 -mx86-used-note=yes" {pr17306b.s} {} ""}
     {"PR ld/17306 (2)" "-melf_i386 -shared -Bsymbolic --just-symbols=tmpdir/pr17306b.o" ""
-     "--32" {pr17306a.s} {} "libpr17306.so"}
+     "--32 -mx86-used-note=yes" {pr17306a.s} {} "libpr17306.so"}
     {"PR ld/17709 (1)" "-melf_i386 -shared" ""
-     "--32" {pr17709a.s} {} "libpr17709.so"}
+     "--32 -mx86-used-note=yes" {pr17709a.s} {} "libpr17709.so"}
     {"PR ld/17709 (2)" "-melf_i386 tmpdir/libpr17709.so" ""
-     "--32" {pr17709b.s} {{readelf -r pr17709.rd}} "pr17709"}
+     "--32 -mx86-used-note=yes"
+     {pr17709b.s} {{readelf -r pr17709.rd}} "pr17709"}
     {"Build pr19827a.o" "" ""
-     "--32" { pr19827a.S }}
+     "--32 -mx86-used-note=yes" { pr19827a.S }}
     {"Build pr19827b.so" "-melf_i386 -shared" ""
-     "--32" { pr19827b.S } {} "pr19827b.so"}
+     "--32 -mx86-used-note=yes"
+     { pr19827b.S } {} "pr19827b.so"}
     {"Build pr19827" "-melf_i386 -pie tmpdir/pr19827a.o tmpdir/pr19827b.so" ""
-     "--32" { dummy.s } {{readelf {-rW} pr19827.rd}} "pr19827"}
+     "--32 -mx86-used-note=yes"
+     { dummy.s } {{readelf {-rW} pr19827.rd}} "pr19827"}
     {"Build pr19827.so" "-melf_i386 -shared -Bsymbolic" ""
-     "--32" { pr19827a.S }  {{readelf {-rW} pr19827.rd}} "pr19827.so"}
+     "--32 -mx86-used-note=yes"
+     { pr19827a.S }  {{readelf {-rW} pr19827.rd}} "pr19827.so"}
 }
 
 # So as to avoid rewriting every last test case here in a nacl variant,
@@ -475,6 +486,7 @@ if { !([istarget "i?86-*-linux*"]
        || [istarget "i?86-*-nacl*"]
        || [istarget "x86_64-*-nacl*"]
        || [istarget "x86_64-*-linux*"]) } {
+    set ASFLAGS "$saved_ASFLAGS"
     return
 }
 
@@ -508,7 +520,7 @@ proc undefined_weak {cflags ldflags} {
        [list \
            "Build libpr19704a.so" \
            "-shared -Wl,-soname,libpr19704.so" \
-           "" \
+           "-Wa,-mrelax-relocations=yes" \
            { dummy.s } \
            {} \
            "libpr19704a.so" \
@@ -516,7 +528,7 @@ proc undefined_weak {cflags ldflags} {
        [list \
            "Build libpr19704b.so" \
            "-shared -Wl,-soname,libpr19704.so" \
-           "-fPIC" \
+           "-fPIC -Wa,-mrelax-relocations=yes" \
            { pr19704b.c } \
            {} \
            "libpr19704b.so" \
@@ -529,7 +541,7 @@ proc undefined_weak {cflags ldflags} {
        [list \
            "Run pr19704" \
            "$ldflags tmpdir/libpr19704.so -Wl,-R,tmpdir" \
-           "" \
+           "-Wa,-mrelax-relocations=yes" \
            { pr19704a.c } \
            "pr19704" \
            "pr19704.out" \
@@ -558,7 +570,7 @@ if { [isnative]
        [list \
            "Build plt-lib.so" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mrelax-relocations=yes" \
            { plt-lib.c } \
            {} \
            "libplt-lib.so" \
@@ -566,7 +578,7 @@ if { [isnative]
        [list \
            "Build libplt-main1.a" \
            "" \
-           "-fPIC -Wa,-mrelax-relocations=yes" \
+           "-fPIC -Wa,-mrelax-relocations=yes,-mrelax-relocations=yes" \
            { plt-main1.c } \
            {{readelf {-Wr} plt-main1.rd}} \
            "libplt-main1.a" \
@@ -574,7 +586,7 @@ if { [isnative]
        [list \
            "Build libplt-main2.a" \
            "" \
-           "-fPIC -Wa,-mrelax-relocations=yes" \
+           "-fPIC -Wa,-mrelax-relocations=yes,-mrelax-relocations=yes" \
            { plt-main2.c } \
            {{readelf {-Wr} plt-main2.rd}} \
            "libplt-main2.a" \
@@ -582,7 +594,7 @@ if { [isnative]
        [list \
            "Build libplt-main3.a" \
            "" \
-           "-fPIC -Wa,-mrelax-relocations=yes $PLT_CFLAGS" \
+           "-fPIC -Wa,-mrelax-relocations=yes,-mrelax-relocations=yes $PLT_CFLAGS" \
            { plt-main3.c } \
            {{readelf {-Wr} plt-main3.rd}} \
            "libplt-main3.a" \
@@ -590,7 +602,7 @@ if { [isnative]
        [list \
            "Build libplt-main4.a" \
            "" \
-           "-fPIC -Wa,-mrelax-relocations=yes $PLT_CFLAGS" \
+           "-fPIC -Wa,-mrelax-relocations=yes,-mrelax-relocations=yes $PLT_CFLAGS" \
            { plt-main4.c } \
            {{readelf {-Wr} plt-main4.rd}} \
            "libplt-main4.a" \
@@ -599,7 +611,7 @@ if { [isnative]
            "Build plt-main" \
            "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
             tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
-           "" \
+           "-Wa,-mrelax-relocations=yes" \
            { plt-main5.c } \
            {{readelf {-Wr} plt-main.rd}} \
            "plt-main" \
@@ -608,7 +620,7 @@ if { [isnative]
            "Build plt-main with PIE" \
            "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
             tmpdir/plt-main4.o tmpdir/libplt-lib.so -pie" \
-           "-fPIC" \
+           "-fPIC -Wa,-mrelax-relocations=yes" \
            { plt-main5.c } \
            {{readelf {-Wr} plt-main.rd}} \
            "plt-main" \
@@ -616,7 +628,7 @@ if { [isnative]
        [list \
            "Build copyreloc-lib.so" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mrelax-relocations=yes" \
            { copyreloc-lib.c } \
            {} \
            "copyreloc-lib.so" \
@@ -624,7 +636,7 @@ if { [isnative]
        [list \
            "Build libcopyreloc-main.a" \
            "" \
-           "" \
+           "-Wa,-mrelax-relocations=yes" \
            { copyreloc-main.S } \
            {} \
            "libcopyreloc-main.a" \
@@ -632,7 +644,7 @@ if { [isnative]
        [list \
            "Build copyreloc-main with PIE and GOTOFF (1)" \
            "tmpdir/copyreloc-main.o tmpdir/copyreloc-lib.so -pie" \
-           "" \
+           "-Wa,-mrelax-relocations=yes" \
            { dummy.s } \
            {{readelf {-Wr} copyreloc-main1.rd}} \
            "copyreloc-main" \
@@ -640,7 +652,7 @@ if { [isnative]
        [list \
            "Build copyreloc-main with PIE and GOTOFF (2)" \
            "tmpdir/copyreloc-main.o tmpdir/copyreloc-lib.so -pie" \
-           "" \
+           "-Wa,-mrelax-relocations=yes" \
            { dummy.s } \
            {{readelf {-Wr} copyreloc-main2.rd}} \
            "copyreloc-main" \
@@ -648,7 +660,7 @@ if { [isnative]
        [list \
            "Build pr17689.so" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mrelax-relocations=yes" \
            { pr17689a.c } \
            {} \
            "pr17689.so" \
@@ -656,7 +668,7 @@ if { [isnative]
        [list \
            "Build pr17689.so with -z now" \
            "-shared -Wl,-z,now" \
-           "-fPIC" \
+           "-fPIC -Wa,-mrelax-relocations=yes" \
            { pr17689a.c } \
            {{readelf {-Wr} pr17689now.rd}} \
            "pr17689now.so" \
@@ -664,7 +676,7 @@ if { [isnative]
        [list \
            "Build pr17689ver.so" \
            "-shared -Wl,--version-script,pr17689a.t" \
-           "-fPIC" \
+           "-fPIC -Wa,-mrelax-relocations=yes" \
            { pr17689a.c } \
            {} \
            "pr17689ver.so" \
@@ -672,7 +684,7 @@ if { [isnative]
        [list \
            "Build pr17689.a" \
            "" \
-           "" \
+           "-Wa,-mrelax-relocations=yes" \
            { pr17689b.S } \
            {} \
            "pr17689.a" \
@@ -680,7 +692,7 @@ if { [isnative]
        [list \
            "Build pr17689 with PIE and GOTOFF" \
            "tmpdir/pr17689b.o tmpdir/pr17689.so -pie" \
-           "" \
+           "-Wa,-mrelax-relocations=yes" \
            { dummy.c } \
            {{readelf {-Wr} pr17689.rd}} \
            "pr17689" \
@@ -688,7 +700,7 @@ if { [isnative]
        [list \
            "Build pr17689 with PIE, -z now and GOTOFF" \
            "tmpdir/pr17689b.o tmpdir/pr17689.so -pie -Wl,-z,now" \
-           "" \
+           "-Wa,-mrelax-relocations=yes" \
            { dummy.c } \
            {{readelf {-Wr} pr17689now.rd}} \
            "pr17689now" \
@@ -696,7 +708,7 @@ if { [isnative]
        [list \
            "Build pr17689ver with PIE and GOTOFF" \
            "tmpdir/pr17689b.o tmpdir/pr17689ver.so -pie" \
-           "" \
+           "-Wa,-mrelax-relocations=yes" \
            { dummy.c } \
            {{readelf {-Wr} pr17689ver.rd}} \
            "pr17689ver" \
@@ -704,7 +716,7 @@ if { [isnative]
        [list \
            "Build pr17827 with PIE and GOTOFF" \
            "tmpdir/pr17689b.o tmpdir/pr17689.so -pie" \
-           "" \
+           "-Wa,-mrelax-relocations=yes" \
            { dummy.c } \
            {{readelf {-Wr} pr17827.rd}} \
            "pr17827" \
@@ -712,7 +724,7 @@ if { [isnative]
        [list \
            "Build pr18900.so" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mrelax-relocations=yes" \
            { pr18900a.c } \
            "" \
            "pr18900.so" \
@@ -720,7 +732,7 @@ if { [isnative]
        [list \
            "Build pr18900.o" \
            "-r -nostdlib" \
-           "" \
+           "-Wa,-mrelax-relocations=yes" \
            { pr18900b.c pr18900c.c } \
            "" \
            "pr18900.o" \
@@ -728,7 +740,7 @@ if { [isnative]
        [list \
            "Build pr18900a" \
            "tmpdir/pr18900.o tmpdir/pr18900.so" \
-           "" \
+           "-Wa,-mrelax-relocations=yes" \
            { dummy.s } \
            {{readelf {-Wrd} pr18900a.rd}} \
            "pr18900a" \
@@ -736,7 +748,7 @@ if { [isnative]
        [list \
            "Build pr18900b" \
            "-Wl,--as-needed tmpdir/pr18900.o tmpdir/pr18900.so" \
-           "" \
+           "-Wa,-mrelax-relocations=yes" \
            { dummy.s } \
            {{readelf {-Wrd} pr18900b.rd}} \
            "pr18900b" \
@@ -744,7 +756,7 @@ if { [isnative]
        [list \
            "Build pr19031.so" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mrelax-relocations=yes" \
            { pr19031a.c } \
            "" \
            "pr19031.so" \
@@ -752,7 +764,7 @@ if { [isnative]
        [list \
            "Build got1d.so" \
            "-shared" \
-           "" \
+           "-Wa,-mrelax-relocations=yes" \
            { got1d.S } \
            "" \
            "got1d.so" \
@@ -768,7 +780,7 @@ if { [isnative]
        [list \
            "Build gotpc1" \
            "$NOPIE_LDFLAGS -Wl,--as-needed tmpdir/gotpc1.o tmpdir/got1d.so" \
-           "" \
+           "-Wa,-mx86-used-note=no" \
            { dummy.s } \
            {{objdump {-dw} got1.dd}} \
            "got1" \
@@ -776,7 +788,7 @@ if { [isnative]
        [list \
            "Build pr19319.so" \
            "-shared" \
-           "" \
+           "-Wa,-mx86-used-note=no" \
            { pr19319a.S } \
            "" \
            "pr19319.so" \
@@ -792,7 +804,7 @@ if { [isnative]
        [list \
            "Build property 1" \
            "" \
-           "" \
+           "-Wa,-mx86-used-note=no" \
            {pass.c property-no-copy.S} \
            {{readelf {-n} property-1.r}} \
            "property-1" \
@@ -800,15 +812,15 @@ if { [isnative]
        [list \
            "Build property 1 (.o)" \
            "-r -nostdlib" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-no-copy.S} \
-           {{readelf {-n} property-1.r}} \
+           {{readelf {-n} property-1a.r}} \
            "property-1.o" \
        ] \
        [list \
            "Build property 1 (.so)" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=no" \
            {pass.c property-no-copy.S} \
            {{readelf {-n} property-1.r}} \
            "property-1.so" \
@@ -816,7 +828,7 @@ if { [isnative]
        [list \
            "Build property 2" \
            "" \
-           "" \
+           "-Wa,-mx86-used-note=no" \
            {pass.c property-stack.S} \
            {{readelf {-n} property-2.r}} \
            "property-2" \
@@ -824,15 +836,15 @@ if { [isnative]
        [list \
            "Build property 2 (.o)" \
            "-r -nostdlib" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-stack.S} \
-           {{readelf {-n} property-2.r}} \
+           {{readelf {-n} property-2a.r}} \
            "property-2.o" \
        ] \
        [list \
            "Build property 2 (.so)" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=no" \
            {pass.c property-stack.S} \
            {{readelf {-n} property-2.r}} \
            "property-2.so" \
@@ -840,7 +852,7 @@ if { [isnative]
        [list \
            "Build property 3" \
            "" \
-           "" \
+           "-Wa,-mx86-used-note=no" \
            {pass.c property-stack.S property-x86-1.S} \
            {{readelf {-n} property-3.r}} \
            "property-3" \
@@ -848,15 +860,15 @@ if { [isnative]
        [list \
            "Build property 3 (.o)" \
            "-r -nostdlib" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-x86-1.S property-stack.S} \
-           {{readelf {-n} property-3.r}} \
+           {{readelf {-n} property-3a.r}} \
            "property-3.o" \
        ] \
        [list \
            "Build property 3 (.so)" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=no" \
            {property-x86-1.S pass.c property-stack.S} \
            {{readelf {-n} property-3.r}} \
            "property-3.so" \
@@ -864,7 +876,7 @@ if { [isnative]
        [list \
            "Build property 4" \
            "" \
-           "" \
+           "-Wa,-mx86-used-note=no" \
            {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
            {{readelf {-n} property-4.r}} \
            "property-4" \
@@ -872,15 +884,15 @@ if { [isnative]
        [list \
            "Build property 4 (.o)" \
            "-r -nostdlib" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
-           {{readelf {-n} property-4.r}} \
+           {{readelf {-n} property-4a.r}} \
            "property-4.o" \
        ] \
        [list \
            "Build property 4 (.so)" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=no" \
            {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
            {{readelf {-n} property-4.r}} \
            "property-4.so" \
@@ -888,7 +900,7 @@ if { [isnative]
        [list \
            "Build property 4 (-Wl,-z,stack-size=0)" \
            "-Wl,-z,stack-size=0" \
-           "" \
+           "-Wa,-mx86-used-note=no" \
            {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
            {{readelf {-n} property-4.r}} \
            "property-4" \
@@ -896,7 +908,7 @@ if { [isnative]
        [list \
            "Build property 5" \
            "-Wl,-z,stack-size=0x900000" \
-           "" \
+           "-Wa,-mx86-used-note=no" \
            {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
            {{readelf {-n} property-5.r}} \
            "property-5" \
@@ -904,15 +916,15 @@ if { [isnative]
        [list \
            "Build property 5 (.o)" \
            "-r -nostdlib -Wl,-z,stack-size=0x900000" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
-           {{readelf {-n} property-5.r}} \
+           {{readelf {-n} property-5a.r}} \
            "property-5.o" \
        ] \
        [list \
            "Build property 5 (.so)" \
            "-shared -Wl,-z,stack-size=0x900000" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=no" \
            {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
            {{readelf {-n} property-5.r}} \
            "property-5.so" \
@@ -920,7 +932,7 @@ if { [isnative]
        [list \
            "Build property-6.so" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=no" \
            {property-6a.c property-6c.S} \
            {{readelf {-n} property-6.r}} \
            "property-6.so" \
@@ -928,33 +940,33 @@ if { [isnative]
        [list \
            "Build property-6.o" \
            "-r -nostdlib" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {property-6b.c property-stack.S} \
-           {{readelf {-n} property-2.r}} \
+           {{readelf {-n} property-2a.r}} \
            "property-6.o" \
        ] \
        [list \
            "Build property-6" \
            "-Wl,--as-needed tmpdir/property-6.o tmpdir/property-6.so" \
+           "-Wa,-mx86-used-note=no" \
            { dummy.s } \
-           "" \
            {{readelf {-n} property-2.r}} \
            "property-6" \
        ] \
        [list \
            "Build property 7a (.o)" \
            "-r -nostdlib" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {property-unsorted-1.S} \
-           {{readelf {-n} property-7.r}} \
+           {{readelf {-n} property-7a.r}} \
            "property-7a.o" \
        ] \
        [list \
            "Build property 7b (.o)" \
            "-r -nostdlib" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {property-unsorted-2.S} \
-           {{readelf {-n} property-7.r}} \
+           {{readelf {-n} property-7a.r}} \
            "property-7b.o" \
        ] \
     ]
@@ -964,7 +976,7 @@ if { [isnative]
            "Run plt-main" \
            "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
             tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { plt-main5.c } \
            "plt-main" \
            "plt-main.out" \
@@ -973,7 +985,7 @@ if { [isnative]
            "Run plt-main with PIE" \
            "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
             tmpdir/plt-main4.o tmpdir/libplt-lib.so -pie" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { plt-main5.c } \
            "plt-main-pie" \
            "plt-main.out" \
@@ -982,7 +994,7 @@ if { [isnative]
        [list \
            "Run copyreloc-main with PIE and GOTOFF" \
            "-Wl,--as-needed tmpdir/copyreloc-main.o tmpdir/copyreloc-lib.so -pie" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            "copyreloc-main" \
            "copyreloc-main.out" \
@@ -990,7 +1002,7 @@ if { [isnative]
        [list \
            "Run pr17689 with PIE and GOTOFF" \
            "tmpdir/pr17689b.o tmpdir/pr17689.so -pie" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.c } \
            "pr17689" \
            "pr17689.out" \
@@ -998,7 +1010,7 @@ if { [isnative]
        [list \
            "Run pr17689 with PIE, -z now and GOTOFF" \
            "tmpdir/pr17689b.o tmpdir/pr17689.so -pie -z now" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.c } \
            "pr17689now" \
            "pr17689.out" \
@@ -1006,7 +1018,7 @@ if { [isnative]
        [list \
            "Run pr17689ver with PIE and GOTOFF" \
            "tmpdir/pr17689b.o tmpdir/pr17689ver.so -pie" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.c } \
            "pr17689ver" \
            "pr17689.out" \
@@ -1014,7 +1026,7 @@ if { [isnative]
        [list \
            "Run pr18900" \
            "tmpdir/pr18900.o tmpdir/pr18900.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            "pr18900" \
            "pr18900.out" \
@@ -1022,7 +1034,7 @@ if { [isnative]
        [list \
            "Run pr19031" \
            "$NOPIE_LDFLAGS tmpdir/pr19031.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr19031b.S pr19031c.c } \
            "pr19031" \
            "pr19031.out" \
@@ -1031,7 +1043,7 @@ if { [isnative]
        [list \
            "Run got1" \
            "$NOPIE_LDFLAGS tmpdir/got1d.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { got1a.S got1b.c got1c.c } \
            "got1" \
            "got1.out" \
@@ -1039,105 +1051,105 @@ if { [isnative]
        [list \
            "Run property 1" \
            "" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-no-copy.S} \
            "property-1" "pass.out" \
        ] \
        [list \
            "Run property 1 (PIE)" \
            "-pie" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-no-copy.S} \
            "property-1-pie" "pass.out" "-fPIE" \
        ] \
        [list \
            "Run property 1 (static)" \
            "-static" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-no-copy.S} \
            "property-1-static" "pass.out" \
        ] \
        [list \
            "Run property 2" \
            "" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-stack.S} \
            "property-2" "pass.out" \
        ] \
        [list \
            "Run property 2 (PIE)" \
            "-pie" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-stack.S} \
            "property-2-pie" "pass.out" "-fPIE" \
        ] \
        [list \
            "Run property 2 (static)" \
            "-static" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-stack.S} \
            "property-3-static" "pass.out" \
        ] \
        [list \
            "Run property 3" \
            "" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-stack.S property-x86-1.S} \
            "property-3" "pass.out" \
        ] \
        [list \
            "Run property 3 (PIE)" \
            "-pie" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-x86-1.S property-stack.S} \
            "property-3-pie" "pass.out" "-fPIE" \
        ] \
        [list \
            "Run property 3 (static)" \
            "-static" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {property-x86-1.S pass.c property-stack.S} \
            "property-3-static" "pass.out" \
        ] \
        [list \
            "Run property 4" \
            "" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
            "property-4" "pass.out" \
        ] \
        [list \
            "Run property 4 (PIE)" \
            "-pie" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
            "property-4-pie" "pass.out" "-fPIE" \
        ] \
        [list \
            "Run property 4 (static)" \
            "-static" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
            "property-4-static" "pass.out" \
        ] \
        [list \
            "Run property 5" \
            "-Wl,-z,stack-size=0x900000" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
            "property-5" "pass.out" \
        ] \
        [list \
            "Run property 5 (PIE)" \
            "-pie -Wl,-z,stack-size=0x900000" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
            "property-5-pie" "pass.out" "-fPIE" \
        ] \
        [list \
            "Run property 5 (static)" \
            "-static -Wl,-z,stack-size=0x900000" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
            "property-5-static" "pass.out" \
        ] \
@@ -1161,19 +1173,19 @@ if { [isnative]
        [list \
            "Build ifunc-1a.o ifunc-1b.o ifunc-1c.o ifunc-1d.o" \
            "" \
-           "-fPIC -O2 -g" \
+           "-fPIC -O2 -g -Wa,-mx86-used-note=yes" \
            { ifunc-1a.c ifunc-1b.S ifunc-1c.S ifunc-1d.S } \
        ] \
        [list \
            "Build pr21168a.o" \
            "" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr21168a.c } \
        ] \
        [list \
            "Build pr21168.so" \
            "-shared" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr21168b.S } \
            "" \
            "pr21168.so" \
@@ -1185,7 +1197,7 @@ if { [isnative]
            "Run ifunc-1a" \
            "tmpdir/ifunc-1a.o tmpdir/ifunc-1b.o \
             tmpdir/ifunc-1c.o tmpdir/ifunc-1d.o" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.c } \
            "ifunc-1a" \
            "pass.out" \
@@ -1194,7 +1206,7 @@ if { [isnative]
            "Run ifunc-1b" \
            "--static tmpdir/ifunc-1a.o tmpdir/ifunc-1b.o \
            tmpdir/ifunc-1c.o tmpdir/ifunc-1d.o" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.c } \
            "ifunc-1b" \
            "pass.out" \
@@ -1202,7 +1214,7 @@ if { [isnative]
        [list \
            "Run pr21168" \
            "tmpdir/pr21168a.o tmpdir/pr21168.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.c } \
            "pr21168" \
            "pass.out" \
@@ -1214,7 +1226,7 @@ if { [isnative]
            [list \
                "Build pr21168.so with -z ibtplt" \
                "-shared -Wl,-z,ibtplt" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { pr21168b.S } \
                "" \
                "pr21168-ibt.so" \
@@ -1223,7 +1235,7 @@ if { [isnative]
                "Build ifunc-1a with -z ibtplt" \
                "-Wl,-z,ibtplt $NOPIE_LDFLAGS tmpdir/ifunc-1a.o \
                 tmpdir/ifunc-1b.o tmpdir/ifunc-1c.o tmpdir/ifunc-1d.o" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { dummy.c } \
                {{objdump {-dw} plt-main-ibt.dd}} \
                "ifunc-1a-ibt" \
@@ -1232,7 +1244,7 @@ if { [isnative]
                "Build ifunc-1a with PIE -z ibtplt" \
                "-Wl,-z,ibtplt -pie tmpdir/ifunc-1a.o \
                 tmpdir/ifunc-1b.o tmpdir/ifunc-1c.o tmpdir/ifunc-1d.o" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { dummy.c } \
                {{objdump {-dw} plt-pie-ibt.dd}} \
                "ifunc-1a-pie-ibt" \
@@ -1244,7 +1256,7 @@ if { [isnative]
                "Run ifunc-1a with -z ibtplt" \
                "-Wl,-z,ibtplt $NOPIE_LDFLAGS tmpdir/ifunc-1a.o \
                 tmpdir/ifunc-1b.o tmpdir/ifunc-1c.o tmpdir/ifunc-1d.o" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { dummy.c } \
                "ifunc-1a-ibt" \
                "pass.out" \
@@ -1253,7 +1265,7 @@ if { [isnative]
                "Run ifunc-1a with PIE -z ibtplt" \
                "-Wl,-z,ibtplt -pie tmpdir/ifunc-1a.o \
                 tmpdir/ifunc-1b.o tmpdir/ifunc-1c.o tmpdir/ifunc-1d.o" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { dummy.c } \
                "ifunc-1a-pie-ibt" \
                "pass.out" \
@@ -1261,7 +1273,7 @@ if { [isnative]
            [list \
                "Run pr21168 with -z ibtplt" \
                "tmpdir/pr21168a.o tmpdir/pr21168-ibt.so" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { dummy.c } \
                "pr21168-ibt" \
                "pass.out" \
@@ -1278,7 +1290,7 @@ if { [isnative]
        [list \
            "Build pr22001-1.so" \
            "-shared" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr22001-1a.c } \
            {} \
            "pr22001-1.so" \
@@ -1286,7 +1298,7 @@ if { [isnative]
        [list \
            "Build pr21997-1.so" \
            "-shared" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { property-stack.S property-no-copy.S pr21997-1a.S } \
            {} \
            "pr21997-1.so" \
@@ -1294,7 +1306,7 @@ if { [isnative]
        [list \
            "Build pr22842.so" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=yes" \
            { pr22842a.c } \
            {} \
            "pr22842.so" \
@@ -1305,7 +1317,7 @@ if { [isnative]
        [list \
            "Run weakundef1 without PIE" \
            "$NOPIE_LDFLAGS" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { weakundef1.c } \
            "weakundef1pie" \
            "pass.out" \
@@ -1314,7 +1326,7 @@ if { [isnative]
        [list \
            "Run pr22001-1" \
            "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr22001-1b.c } \
            "pr22001-1" \
            "pass.out" \
@@ -1323,7 +1335,7 @@ if { [isnative]
        [list \
            "Run pr22001-1 (PIE 1)" \
            "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr22001-1c.S } \
            "pr22001-1-pie-1" \
            "pass.out" \
@@ -1331,7 +1343,7 @@ if { [isnative]
        [list \
            "Run pr22001-1 (PIE 2)" \
            "-pie -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr22001-1c.S } \
            "pr22001-1-pie-2" \
            "pass.out" \
@@ -1339,7 +1351,7 @@ if { [isnative]
        [list \
            "Run pr22001-1 (PIC 1)" \
            "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr22001-1b.c } \
            "pr22001-1-pic-1" \
            "pass.out" \
@@ -1348,7 +1360,7 @@ if { [isnative]
        [list \
            "Run pr22001-1 (PIC 2)" \
            "-pie -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr22001-1b.c } \
            "pr22001-1-pic-2" \
            "pass.out" \
@@ -1357,7 +1369,7 @@ if { [isnative]
        [list \
            "Run pr21997-1" \
            "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/pr21997-1.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr21997-1b.c } \
            "pr21997-1" \
            "pass.out" \
@@ -1366,7 +1378,7 @@ if { [isnative]
        [list \
            "Run pr21997-1 (PIC 1)" \
            "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/pr21997-1.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr21997-1b.c } \
            "pr21997-1-pic-1" \
            "pass.out" \
@@ -1375,7 +1387,7 @@ if { [isnative]
        [list \
            "Run pr21997-1 (PIC 2)" \
            "-pie -Wl,--no-as-needed tmpdir/pr21997-1.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr21997-1b.c } \
            "pr21997-1-pic-2" \
            "pass.out" \
@@ -1384,7 +1396,7 @@ if { [isnative]
        [list \
            "Run pr21997-1 (PIE 1)" \
            "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/pr21997-1.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr21997-1c.S } \
            "pr21997-1-pie-1" \
            "pass.out" \
@@ -1392,7 +1404,7 @@ if { [isnative]
        [list \
            "Run pr21997-1 (PIE 2)" \
            "-pie -Wl,--no-as-needed tmpdir/pr21997-1.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr21997-1c.S } \
            "pr21997-1-pie-2" \
            "pass.out" \
@@ -1400,7 +1412,7 @@ if { [isnative]
        [list \
            "Build pr22842" \
            "-pie -Wl,--no-as-needed tmpdir/pr22842.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr22842b.S } \
            "pr22842" \
            "pass.out" \
@@ -1412,7 +1424,7 @@ if { [isnative]
            [list \
                "Run weakundef1 with PIE" \
                "-pie" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { weakundef1.c } \
                "weakundef1pie" \
                "pass.out" \
@@ -1424,6 +1436,7 @@ if { [isnative]
 
 if { !([istarget "i?86-*-linux*"]
        || [istarget "x86_64-*-linux*"]) } {
+    set ASFLAGS "$saved_ASFLAGS"
     return
 }
 
@@ -1442,7 +1455,7 @@ run_ld_link_tests [list \
        "basic PLT generation (PIC, -z now)" \
        "-z now -shared -melf_i386 tmpdir/libpltlib.so" \
        "" \
-       "--32" \
+       "--32 -mx86-used-note=yes" \
        {plt-pic.s} \
        {{objdump -dwr plt-pic2.dd}} \
        "plt-pic2.so" \
@@ -1451,7 +1464,7 @@ run_ld_link_tests [list \
        "Build pr21626.so" \
        "-shared -melf_i386" \
        "" \
-       "--32" \
+       "--32 -mx86-used-note=yes" \
        {property-x86-3.s} \
        "" \
        "pr21626.so" \
@@ -1460,7 +1473,7 @@ run_ld_link_tests [list \
        "Build pr21626" \
        "-melf_i386 tmpdir/pr21626.so" \
        "" \
-       "--32" \
+       "--32 -mx86-used-note=yes" \
        {start.s foo.s} \
        "" \
        "pr21626" \
@@ -1480,3 +1493,5 @@ run_dump_test "ibt-plt-3a"
 run_dump_test "ibt-plt-3b"
 run_dump_test "ibt-plt-3c"
 run_dump_test "ibt-plt-3d"
+
+set ASFLAGS "$saved_ASFLAGS"
index 08584a80ad4652061d4a7a16ee518e75ff417178..c9f36c539c45473364309654a9979d3ae2448205 100644 (file)
@@ -46,21 +46,21 @@ run_cc_link_tests [list \
     [list \
        "Build no-plt-func1.o no-plt-main1.o" \
        "" \
-       "-fPIE" \
+       "-fPIE -Wa,-mx86-used-note=yes" \
        {no-plt-func1.c no-plt-main1.c} \
     ] \
     [list \
        "Build no-plt-check1a.o no-plt-extern1a.o \
         no-plt-check1b.o no-plt-extern1b.o" \
        "" \
-       "-Wa,-mrelax-relocations=yes" \
+       "-Wa,-mrelax-relocations=yes,-mx86-used-note=yes" \
        {no-plt-check1a.S no-plt-extern1a.S \
         no-plt-check1b.S no-plt-extern1b.S } \
     ] \
     [list \
        "Build libno-plt-1a.so" \
        "-shared tmpdir/no-plt-func1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        {} \
        "libno-plt-1a.so" \
@@ -68,7 +68,7 @@ run_cc_link_tests [list \
     [list \
        "Build libno-plt-1b.so" \
        "-shared tmpdir/no-plt-extern1a.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        {{readelf -Wr libno-plt-1b.rd} \
         {objdump -dwrj.text libno-plt-1b.dd}} \
@@ -78,7 +78,7 @@ run_cc_link_tests [list \
        "No PLT (dynamic 1a)" \
        "$NOPIE_LDFLAGS tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/no-plt-extern1a.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        {{readelf -Wr no-plt-1a.rd} {objdump -dwrj.text no-plt-1a.dd}} \
        "no-plt-1a" \
@@ -87,7 +87,7 @@ run_cc_link_tests [list \
        "No PLT (dynamic 1b)" \
        "tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
         tmpdir/libno-plt-1a.so tmpdir/libno-plt-1b.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        {{readelf -Wr no-plt-1b.rd} {objdump -dwrj.text no-plt-1b.dd}} \
        "no-plt-1b" \
@@ -96,7 +96,7 @@ run_cc_link_tests [list \
        "No PLT (dynamic 1c)" \
        "$NOPIE_LDFLAGS tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/libno-plt-1b.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        {{readelf -Wr no-plt-1c.rd} {objdump -dwrj.text no-plt-1c.dd}} \
        "no-plt-1c" \
@@ -105,7 +105,7 @@ run_cc_link_tests [list \
        "No PLT (static 1d)" \
        "-static tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/no-plt-extern1a.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        {{readelf -Wr no-plt-1d.rd} {objdump -dwrj.text no-plt-1d.dd}} \
        "no-plt-1d" \
@@ -114,7 +114,7 @@ run_cc_link_tests [list \
        "No PLT (PIE 1e)" \
        "-pie tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/no-plt-extern1a.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        {{readelf -Wr no-plt-1e.rd} {objdump -dwrj.text no-plt-1e.dd}} \
        "no-plt-1e" \
@@ -123,7 +123,7 @@ run_cc_link_tests [list \
        "No PLT (PIE 1f)" \
        "-pie tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
         tmpdir/libno-plt-1a.so tmpdir/libno-plt-1b.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        {{readelf -Wr no-plt-1f.rd} {objdump -dwrj.text no-plt-1f.dd}} \
        "no-plt-1f" \
@@ -132,7 +132,7 @@ run_cc_link_tests [list \
        "No PLT (PIE 1g)" \
        "-pie tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/libno-plt-1b.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        {{readelf -Wr no-plt-1g.rd} {objdump -dwrj.text no-plt-1g.dd}} \
        "no-plt-1g" \
@@ -141,7 +141,7 @@ run_cc_link_tests [list \
        "No PLT (dynamic 1h)" \
        "$NOPIE_LDFLAGS tmpdir/no-plt-check1b.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/no-plt-extern1b.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        {{readelf -Wr no-plt-1h.rd} {objdump -dwrj.text no-plt-1h.dd}} \
        "no-plt-1h" \
@@ -150,7 +150,7 @@ run_cc_link_tests [list \
        "No PLT (dynamic 1i)" \
        "$NOPIE_LDFLAGS tmpdir/no-plt-check1b.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-extern1b.o tmpdir/libno-plt-1a.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        {{readelf -Wr no-plt-1i.rd} {objdump -dwrj.text no-plt-1i.dd}} \
        "no-plt-1i" \
@@ -159,7 +159,7 @@ run_cc_link_tests [list \
        "No PLT (static 1j)" \
        "-static tmpdir/no-plt-check1b.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/no-plt-extern1b.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        {{readelf -Wr no-plt-1j.rd} {objdump -dwrj.text no-plt-1j.dd}} \
        "no-plt-1j" \
@@ -171,7 +171,7 @@ run_ld_link_exec_tests [list \
        "No PLT (dynamic 1a)" \
        "tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/no-plt-extern1a.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "no-plt-1a" \
        "pass.out" \
@@ -180,7 +180,7 @@ run_ld_link_exec_tests [list \
        "No PLT (dynamic 1b)" \
        "tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
         tmpdir/libno-plt-1a.so tmpdir/libno-plt-1b.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "no-plt-1b" \
        "pass.out" \
@@ -189,7 +189,7 @@ run_ld_link_exec_tests [list \
        "No PLT (dynamic 1c)" \
        "tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/libno-plt-1b.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "no-plt-1c" \
        "pass.out" \
@@ -198,7 +198,7 @@ run_ld_link_exec_tests [list \
        "No PLT (static 1d)" \
        "-static tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/no-plt-extern1a.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "no-plt-1d" \
        "pass.out" \
@@ -207,7 +207,7 @@ run_ld_link_exec_tests [list \
        "No PLT (PIE 1e)" \
        "-pie tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/no-plt-extern1a.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "no-plt-1e" \
        "pass.out" \
@@ -216,7 +216,7 @@ run_ld_link_exec_tests [list \
        "No PLT (PIE 1f)" \
        "-pie tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
         tmpdir/libno-plt-1a.so tmpdir/libno-plt-1b.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "no-plt-1f" \
        "pass.out" \
@@ -225,7 +225,7 @@ run_ld_link_exec_tests [list \
        "No PLT (PIE 1g)" \
        "-pie tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/libno-plt-1b.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "no-plt-1g" \
        "pass.out" \
@@ -234,7 +234,7 @@ run_ld_link_exec_tests [list \
        "No PLT (dynamic 1h)" \
        "$NOPIE_LDFLAGS tmpdir/no-plt-check1b.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/no-plt-extern1b.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        "no-plt-1h" \
        "pass.out" \
@@ -243,7 +243,7 @@ run_ld_link_exec_tests [list \
        "No PLT (dynamic 1i)" \
        "$NOPIE_LDFLAGS tmpdir/no-plt-check1b.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-extern1b.o tmpdir/libno-plt-1a.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        "no-plt-1i" \
        "pass.out" \
@@ -252,7 +252,7 @@ run_ld_link_exec_tests [list \
        "No PLT (static 1j)" \
        "-static tmpdir/no-plt-check1b.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/no-plt-extern1b.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        "no-plt-1j" \
        "pass.out" \
@@ -265,27 +265,27 @@ if { [check_ifunc_available] } {
        [list \
            "Build pr20244-3a.o pr20244-3b.o pr20244-3c.o pr20244-3d.o" \
            "" \
-           "-fPIC -O2 -g" \
+           "-fPIC -O2 -g -Wa,-mx86-used-note=yes" \
            { pr20244-3a.c pr20244-3b.S pr20244-3c.S pr20244-3d.S } \
        ] \
        [list \
            "Build pr20253-1a.o pr20253-1b.o pr20253-1c.o pr20253-1d.o" \
            "" \
-           "-fPIE -O2 -g" \
+           "-fPIE -O2 -g -Wa,-mx86-used-note=yes" \
            { pr20253-1a.c pr20253-1b.S pr20253-1c.S pr20253-1d.S } \
        ] \
        [list \
            "Build libpr20253-1a.so" \
            "-shared tmpdir/pr20253-1b.o \
             tmpdir/pr20253-1c.o tmpdir/pr20253-1d.o" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            {} \
            "libpr20253-1a.so" \
        ] \
        [list \
            "Build pr20253-2a.o pr20253-2b.o pr20253-2c.o pr20253-2d.o" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            "-fPIE -O2 -g" \
            { pr20253-2a.c pr20253-2b.S pr20253-2c.S pr20253-2d.S } \
        ] \
@@ -296,7 +296,7 @@ if { [check_ifunc_available] } {
            "Run pr20244-3a" \
            "$NOPIE_LDFLAGS tmpdir/pr20244-3a.o tmpdir/pr20244-3b.o \
             tmpdir/pr20244-3c.o tmpdir/pr20244-3d.o" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.c } \
            "pr20244-3a" \
            "pass.out" \
@@ -305,7 +305,7 @@ if { [check_ifunc_available] } {
            "Run pr20244-3b" \
            "--static tmpdir/pr20244-3a.o tmpdir/pr20244-3b.o \
            tmpdir/pr20244-3c.o tmpdir/pr20244-3d.o" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.c } \
            "pr20244-3b" \
            "pass.out" \
@@ -314,7 +314,7 @@ if { [check_ifunc_available] } {
            "Run pr20253-1a" \
            "tmpdir/pr20253-1a.o tmpdir/pr20253-1b.o \
             tmpdir/pr20253-1c.o tmpdir/pr20253-1d.o" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            "pr20253-1a" \
            "pass.out" \
@@ -323,7 +323,7 @@ if { [check_ifunc_available] } {
            "Run pr20253-1b" \
            "--static tmpdir/pr20253-1a.o tmpdir/pr20253-1b.o \
            tmpdir/pr20253-1c.o tmpdir/pr20253-1d.o" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            "pr20253-1b" \
            "pass.out" \
@@ -332,7 +332,7 @@ if { [check_ifunc_available] } {
            "Run pr20253-1c" \
            "-pie tmpdir/pr20253-1a.o tmpdir/pr20253-1b.o \
            tmpdir/pr20253-1c.o tmpdir/pr20253-1d.o" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            "pr20253-1c" \
            "pass.out" \
@@ -340,7 +340,7 @@ if { [check_ifunc_available] } {
        [list \
            "Run pr20253-1d" \
            "tmpdir/pr20253-1a.o tmpdir/libpr20253-1a.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            "pr20253-1d" \
            "pass.out" \
@@ -348,7 +348,7 @@ if { [check_ifunc_available] } {
        [list \
            "Run pr20253-1e" \
            "-pie tmpdir/pr20253-1a.o tmpdir/libpr20253-1a.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            "pr20253-1e" \
            "pass.out" \
@@ -356,7 +356,7 @@ if { [check_ifunc_available] } {
        [list \
            "Run pr20253-1f" \
            "$NOPIE_LDFLAGS tmpdir/pr20253-1a.o" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr20253-1b.S pr20253-1c.S pr20253-1d.S } \
            "pr20253-1f" \
            "pass.out" \
@@ -365,7 +365,7 @@ if { [check_ifunc_available] } {
        [list \
            "Run pr20253-1g" \
            "--static tmpdir/pr20253-1a.o" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr20253-1b.S pr20253-1c.S pr20253-1d.S } \
            "pr20253-1g" \
            "pass.out" \
@@ -375,7 +375,7 @@ if { [check_ifunc_available] } {
            "Run pr20253-2a" \
            "$NOPIE_LDFLAGS tmpdir/pr20253-2a.o tmpdir/pr20253-2b.o \
             tmpdir/pr20253-2c.o tmpdir/pr20253-2d.o" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            "pr20253-2a" \
            "pass.out" \
@@ -384,7 +384,7 @@ if { [check_ifunc_available] } {
            "Run pr20253-2b" \
            "--static tmpdir/pr20253-2a.o tmpdir/pr20253-2b.o \
            tmpdir/pr20253-2c.o tmpdir/pr20253-2d.o" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            "pr20253-2b" \
            "pass.out" \
@@ -392,7 +392,7 @@ if { [check_ifunc_available] } {
        [list \
            "Run pr20253-2c" \
            "$NOPIE_LDFLAGS tmpdir/pr20253-2a.o" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr20253-2b.S pr20253-2c.S pr20253-2d.S } \
            "pr20253-2c" \
            "pass.out" \
@@ -401,7 +401,7 @@ if { [check_ifunc_available] } {
        [list \
            "Run pr20253-2d" \
            "--static tmpdir/pr20253-2a.o" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr20253-2b.S pr20253-2c.S pr20253-2d.S } \
            "pr20253-2d" \
            "pass.out" \
index 41a6dcf7d5c8966a5d8568dfa44da261e535064c..2a47fca709e0a883d0e549967501f2e857d7028c 100644 (file)
@@ -1,6 +1,6 @@
 #source: ../ld-x86-64/pr23486a.s
 #source: ../ld-x86-64/pr23486b.s
-#as: --32
+#as: --32 -mx86-used-note=no
 #ld: -r -m elf_i386
 #readelf: -n
 
index 08019b7274dac89e20fd84c4acfad72f01882784..9b0b60ffe1a5af334105117ca2508f31f0e48eea 100644 (file)
@@ -1,6 +1,6 @@
 #source: ../ld-x86-64/pr23486b.s
 #source: ../ld-x86-64/pr23486a.s
-#as: --32
+#as: --32 -mx86-used-note=no
 #ld: -r -m elf_i386
 #readelf: -n
 
diff --git a/ld/testsuite/ld-i386/property-1a.r b/ld/testsuite/ld-i386/property-1a.r
new file mode 100644 (file)
index 0000000..aa08fc9
--- /dev/null
@@ -0,0 +1,9 @@
+#...
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x[0-9a-f]+     NT_GNU_PROPERTY_TYPE_0
+      Properties: no copy on protected 
+       x86 ISA used: <None>
+       x86 feature used: x86
+
+#pass
diff --git a/ld/testsuite/ld-i386/property-2a.r b/ld/testsuite/ld-i386/property-2a.r
new file mode 100644 (file)
index 0000000..f6858d4
--- /dev/null
@@ -0,0 +1,9 @@
+#...
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x[0-9a-f]+     NT_GNU_PROPERTY_TYPE_0
+      Properties: stack size: 0x800000
+       x86 ISA used: <None>
+       x86 feature used: x86
+
+#pass
diff --git a/ld/testsuite/ld-i386/property-3a.r b/ld/testsuite/ld-i386/property-3a.r
new file mode 100644 (file)
index 0000000..13a551e
--- /dev/null
@@ -0,0 +1,9 @@
+#...
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x[0-9a-f]+     NT_GNU_PROPERTY_TYPE_0
+      Properties: stack size: 0x800000
+       x86 ISA needed: CMOV, SSE
+       x86 ISA used: SSE, SSE3
+       x86 feature used: x86
+#pass
diff --git a/ld/testsuite/ld-i386/property-4a.r b/ld/testsuite/ld-i386/property-4a.r
new file mode 100644 (file)
index 0000000..46d1600
--- /dev/null
@@ -0,0 +1,9 @@
+#...
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x[0-9a-f]+     NT_GNU_PROPERTY_TYPE_0
+      Properties: stack size: 0x800000
+       x86 ISA needed: CMOV, SSE, SSE3
+       x86 ISA used: CMOV, SSE, SSE3
+       x86 feature used: x86
+#pass
diff --git a/ld/testsuite/ld-i386/property-5a.r b/ld/testsuite/ld-i386/property-5a.r
new file mode 100644 (file)
index 0000000..23c8f44
--- /dev/null
@@ -0,0 +1,9 @@
+#...
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x[0-9a-f]+     NT_GNU_PROPERTY_TYPE_0
+      Properties: stack size: 0x900000
+       x86 ISA needed: CMOV, SSE, SSE3
+       x86 ISA used: CMOV, SSE, SSE3
+       x86 feature used: x86
+#pass
diff --git a/ld/testsuite/ld-i386/property-7a.r b/ld/testsuite/ld-i386/property-7a.r
new file mode 100644 (file)
index 0000000..7874269
--- /dev/null
@@ -0,0 +1,8 @@
+#...
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x[0-9a-f]+     NT_GNU_PROPERTY_TYPE_0
+      Properties: stack size: 0x800000
+       no copy on protected 
+       x86 ISA used: <None>
+       x86 feature used: x86
index 1cbd37a6fff9970f6fc2c9e65d8a2a6e8e624e91..c58efea51ee45dd6e6ed48ff808121dc00676b94 100644 (file)
@@ -1,9 +1,10 @@
-#as: --32
+#as: --32 -mx86-used-note=yes
 #ld: -shared -m elf_i386
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x00000018      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 ISA needed: SSE, SSE3, SSE4_1, AVX
        x86 ISA used: CMOV, SSE, SSSE3, SSE4_1
+       x86 feature used: x86
index 53c0b045e03e58f7724c74302def19e57de36ec4..6d94b7360c0c090be3b21708a83bcc68fb3b02b9 100644 (file)
@@ -1,10 +1,13 @@
 #source: property-x86-4a.s
 #source: property-x86-4b.s
-#as: --32
+#as: --32 -mx86-used-note=yes
 #ld: -m elf_i386 --gc-sections --entry=main
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x00000008      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x0000002c      NT_GNU_PROPERTY_TYPE_0
       Properties: no copy on protected 
+       x86 feature needed: x86
+       x86 ISA used: <None>
+       x86 feature used: x86
index 43b272f76229423b8e358ecfb0542790d9c544dd..5350f74ca5af57e2ba1af7141ed325960acf4269 100644 (file)
@@ -1,6 +1,11 @@
 #source: property-x86-empty.s
 #source: property-x86-ibt.s
-#as: --32
+#as: --32 -mx86-used-note=yes
 #ld: -r -melf_i386
 #readelf: -n
 
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x00000018      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index 83bf4117f692d376ceffc3800027b22978927473..d658c5dc8964442fa86c7092012be438c14274fe 100644 (file)
@@ -1,6 +1,11 @@
 #source: property-x86-ibt.s
 #source: property-x86-empty.s
-#as: --32
+#as: --32 -mx86-used-note=yes
 #ld: -r -melf_i386
 #readelf: -n
 
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x00000018      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index fbdf4c17a876f5a4b3fe02eb13d0084e79fc26ea..8508fe7e1f3c604b6097d88381b2ab145d867125 100644 (file)
@@ -1,9 +1,11 @@
 #source: property-x86-ibt.s
-#as: --32
+#as: --32 -mx86-used-note=yes
 #ld: -r -melf_i386
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: IBT
+       x86 ISA used: <None>
+       x86 feature used: x86
index b87bc27006b1702a9c100a9b3a121d8288c7b320..a129c8fe25e10d246bbf63dc31486028dce58597 100644 (file)
@@ -1,10 +1,12 @@
 #source: property-x86-3.s
 #source: property-x86-ibt.s
-#as: --32
+#as: --32 -mx86-used-note=yes
 #ld: -r -melf_i386
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 ISA needed: SSE, SSE3, SSE4_1, AVX
+       x86 ISA used: CMOV, SSE, SSSE3, SSE4_1
+       x86 feature used: x86
index f09ae520ab8e2722577ab8f4c3803b780bc12fe1..d6711463c9ae6023336aae916880620a725003ff 100644 (file)
@@ -1,10 +1,12 @@
 #source: property-x86-ibt.s
 #source: property-x86-3.s
-#as: --32
+#as: --32 -mx86-used-note=yes
 #ld: -r -melf_i386
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 ISA needed: SSE, SSE3, SSE4_1, AVX
+       x86 ISA used: CMOV, SSE, SSSE3, SSE4_1
+       x86 feature used: x86
index db14fb9962cb95139c97688c0460bb6b361a9990..11cb046ba6411badaee246530f793ce1b9fbedce 100644 (file)
@@ -1,9 +1,11 @@
 #source: property-x86-empty.s
-#as: --32
+#as: --32 -mx86-used-note=yes
 #ld: -r -melf_i386 -z ibt
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: IBT
+       x86 ISA used: <None>
+       x86 feature used: x86
index 652f6604d0a5b756392070468b0a685d1995db9b..6ba00e6021df4410a8d2958a37a582f3aa02ae9d 100644 (file)
@@ -1,9 +1,11 @@
 #source: start.s
-#as: --32
+#as: --32 -mx86-used-note=yes
 #ld: -r -melf_i386 -z ibt
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: IBT
+       x86 ISA used: <None>
+       x86 feature used: x86
index 238cebeeade63820d132dfb90f89d9b3d6d7fdce..3fd91085feec5149a80126ffd2745ac5618f74bf 100644 (file)
@@ -1,6 +1,11 @@
 #source: property-x86-empty.s
 #source: property-x86-shstk.s
-#as: --32
+#as: --32 -mx86-used-note=yes
 #ld: -r -melf_i386
 #readelf: -n
 
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x00000018      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index faa2ea7b71d10e6991257890fdc53759a68a39b7..28796c9a620edf2a832433fc9d31f182d036e7cc 100644 (file)
@@ -1,6 +1,11 @@
 #source: property-x86-shstk.s
 #source: property-x86-empty.s
-#as: --32
+#as: --32 -mx86-used-note=yes
 #ld: -r -melf_i386
 #readelf: -n
 
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x00000018      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index b39fa58c599054de3ca5914937b66784c35b1157..baad3afaad5212efe948620d4c3d63e70790dd22 100644 (file)
@@ -1,9 +1,11 @@
 #source: property-x86-shstk.s
-#as: --32
+#as: --32 -mx86-used-note=yes
 #ld: -r -melf_i386
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: SHSTK
+       x86 ISA used: <None>
+       x86 feature used: x86
index 44f3e57416815f42346a9fe2c813a8e6d717fe67..48802ce65bee2865af545272f31dd53bdcb12101 100644 (file)
@@ -1,10 +1,12 @@
 #source: property-x86-3.s
 #source: property-x86-shstk.s
-#as: --32
+#as: --32 -mx86-used-note=yes
 #ld: -r -melf_i386
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 ISA needed: SSE, SSE3, SSE4_1, AVX
+       x86 ISA used: CMOV, SSE, SSSE3, SSE4_1
+       x86 feature used: x86
index db136cdc9aaef9b47346355c4043826bd3fb3185..f93b1c7093cca338bcd828b8dd2c886b3db7c5b5 100644 (file)
@@ -1,10 +1,12 @@
 #source: property-x86-shstk.s
 #source: property-x86-3.s
-#as: --32
+#as: --32 -mx86-used-note=yes
 #ld: -r -melf_i386
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 ISA needed: SSE, SSE3, SSE4_1, AVX
+       x86 ISA used: CMOV, SSE, SSSE3, SSE4_1
+       x86 feature used: x86
index d962eabb98014b4a614f5ec3e9e5c5ef89da01f0..53febc525c7e50dcc285cedacc6d4f185c069178 100644 (file)
@@ -1,9 +1,11 @@
 #source: property-x86-empty.s
-#as: --32
+#as: --32 -mx86-used-note=yes
 #ld: -r -melf_i386 -z shstk
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: SHSTK
+       x86 ISA used: <None>
+       x86 feature used: x86
index 6d6371f653727858f2c9aed36970747d4461dc50..bda82ad73e31cff8185392dd4ee3af9a922c4a09 100644 (file)
@@ -1,9 +1,11 @@
 #source: start.s
-#as: --32
+#as: --32 -mx86-used-note=yes
 #ld: -r -melf_i386 -z shstk
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: SHSTK
+       x86 ISA used: <None>
+       x86 feature used: x86
index 63c30c774d1074e622467317dd5092073afcd124..d937ca485e641200048f7dc7c81b459440ba87c4 100644 (file)
@@ -40,19 +40,19 @@ run_cc_link_tests [list \
     [list \
        "Build tls-def1.o tls-main1.o" \
        "" \
-       "-fPIE" \
+       "-fPIE -Wa,-mx86-used-note=yes" \
        {tls-def1.c tls-main1.c} \
     ] \
     [list \
        "Build tls-gd1.o tls-ld1.o" \
        "" \
-       "-fPIC -Wa,-mrelax-relocations=yes" \
+       "-fPIC -Wa,-mrelax-relocations=yes,-mx86-used-note=yes" \
        {tls-gd1.S tls-ld1.S} \
     ] \
     [list \
        "Build libtls-1a.so" \
        "-shared tmpdir/tls-def1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        {} \
        "libtls-1a.so" \
@@ -60,7 +60,7 @@ run_cc_link_tests [list \
     [list \
        "Build libtls-1b.so" \
        "-shared tmpdir/tls-gd1.o tmpdir/tls-ld1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        {} \
        "libtls-1b.so" \
@@ -68,7 +68,7 @@ run_cc_link_tests [list \
     [list \
        "Build libtls-1bn.so" \
        "-Wl,-z,now -shared tmpdir/tls-gd1.o tmpdir/tls-ld1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        {} \
        "libtls-1bn.so" \
@@ -80,7 +80,7 @@ run_ld_link_exec_tests [list \
        "TLS GD/LD -> LE transition without PLT (dynamic)" \
        "tmpdir/tls-def1.o tmpdir/tls-main1.o tmpdir/tls-gd1.o \
         tmpdir/tls-ld1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "tls-1a" \
        "pass.out" \
@@ -89,7 +89,7 @@ run_ld_link_exec_tests [list \
        "TLS GD/LD -> LE transition without PLT (dynamic, -z now)" \
        "-Wl,-z,now tmpdir/tls-def1.o tmpdir/tls-main1.o tmpdir/tls-gd1.o \
         tmpdir/tls-ld1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "tls-1an" \
        "pass.out" \
@@ -98,7 +98,7 @@ run_ld_link_exec_tests [list \
        "TLS GD/LD -> LE transition without PLT (PIE)" \
        "-pie tmpdir/tls-def1.o tmpdir/tls-main1.o tmpdir/tls-gd1.o \
         tmpdir/tls-ld1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "tls-1b" \
        "pass.out" \
@@ -107,7 +107,7 @@ run_ld_link_exec_tests [list \
        "TLS GD/LD -> LE transition without PLT (PIE, -z now)" \
        "-pie -Wl,-z,now tmpdir/tls-def1.o tmpdir/tls-main1.o tmpdir/tls-gd1.o \
         tmpdir/tls-ld1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "tls-1bn" \
        "pass.out" \
@@ -116,7 +116,7 @@ run_ld_link_exec_tests [list \
        "TLS GD/LD -> LE transition without PLT (static)" \
        "-static tmpdir/tls-def1.o tmpdir/tls-main1.o tmpdir/tls-gd1.o \
         tmpdir/tls-ld1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "tls-1c" \
        "pass.out" \
@@ -125,7 +125,7 @@ run_ld_link_exec_tests [list \
        "TLS GD/LD -> IE transition without PLT" \
        "tmpdir/tls-main1.o tmpdir/tls-gd1.o tmpdir/tls-ld1.o \
         tmpdir/libtls-1a.so -Wl,-R,tmpdir" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "tls-1d" \
        "pass.out" \
@@ -134,7 +134,7 @@ run_ld_link_exec_tests [list \
        "TLS GD/LD -> IE transition without PLT (-z now)" \
        "-Wl,-z,now tmpdir/tls-main1.o tmpdir/tls-gd1.o tmpdir/tls-ld1.o \
         tmpdir/libtls-1a.so -Wl,-R,tmpdir" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "tls-1dn" \
        "pass.out" \
@@ -143,7 +143,7 @@ run_ld_link_exec_tests [list \
        "TLS without PLT (1)" \
        "-Wl,--no-as-needed tmpdir/tls-main1.o \
         tmpdir/libtls-1a.so tmpdir/libtls-1b.so -Wl,-R,tmpdir" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "tls-1e" \
        "pass.out" \
@@ -152,7 +152,7 @@ run_ld_link_exec_tests [list \
        "TLS without PLT (2)" \
        "tmpdir/tls-main1.o tmpdir/tls-def1.o \
         tmpdir/libtls-1b.so -Wl,-R,tmpdir" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "tls-1f" \
        "pass.out" \
@@ -161,7 +161,7 @@ run_ld_link_exec_tests [list \
        "TLS without PLT (3)" \
        "-Wl,--no-as-needed -Wl,-z,now tmpdir/tls-main1.o \
         tmpdir/libtls-1a.so tmpdir/libtls-1bn.so -Wl,-R,tmpdir" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "tls-1en" \
        "pass.out" \
@@ -170,7 +170,7 @@ run_ld_link_exec_tests [list \
        "TLS without PLT (4)" \
        "-Wl,-z,now tmpdir/tls-main1.o tmpdir/tls-def1.o \
         tmpdir/libtls-1bn.so -Wl,-R,tmpdir" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "tls-1fn" \
        "pass.out" \
@@ -186,7 +186,7 @@ run_cc_link_tests [list \
     [list \
        "Build libtlsdesc1.so" \
        "-shared" \
-       "-fPIC $GNU2_CFLAGS" \
+       "-fPIC $GNU2_CFLAGS -Wa,-mx86-used-note=yes" \
        { tlsdesc1b.c } \
        {} \
        "libtlsdesc1.so" \
@@ -194,7 +194,7 @@ run_cc_link_tests [list \
     [list \
        "Build libtlsdesc1n.so" \
        "-Wl,-z,now -shared" \
-       "-fPIC $GNU2_CFLAGS" \
+       "-fPIC $GNU2_CFLAGS -Wa,-mx86-used-note=yes" \
        { tlsdesc1b.c } \
        {} \
        "libtlsdesc1n.so" \
@@ -205,7 +205,7 @@ run_ld_link_exec_tests [list \
     [list \
        "Run tlsdesc1" \
        "-Wl,--no-as-needed tmpdir/libtlsdesc1.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { tlsdesc1a.c } \
        "tlsdesc1a" \
        "pass.out" \
@@ -214,7 +214,7 @@ run_ld_link_exec_tests [list \
     [list \
        "Run tlsdesc1 (-z now)" \
        "-Wl,-z,now -Wl,--no-as-needed tmpdir/libtlsdesc1n.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { tlsdesc1a.c } \
        "tlsdesc1b" \
        "pass.out" \
@@ -223,7 +223,7 @@ run_ld_link_exec_tests [list \
     [list \
        "Run tlsdesc1 with PIE" \
        "-pie -Wl,--no-as-needed tmpdir/libtlsdesc1.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { tlsdesc1a.c } \
        "tlsdesc1c" \
        "pass.out" \
@@ -232,7 +232,7 @@ run_ld_link_exec_tests [list \
     [list \
        "Run tlsdesc1 with PIE (-z now)" \
        "-pie -Wl,-z,now -Wl,--no-as-needed tmpdir/libtlsdesc1n.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { tlsdesc1a.c } \
        "tlsdesc1d" \
        "pass.out" \
index 6998b0ea8bc21ed6af34d15b94de6c67846931c7..dc48b4ca01b92672b4056420a4c1a7575db1e7d5 100644 (file)
@@ -1,4 +1,4 @@
-#source: bnd-branch-1.s
+#source: bnd-branch-1.s -mx86-used-note=no
 #as: --64
 #ld: -z now -shared -melf_x86_64 --hash-style=sysv -z max-page-size=0x200000 -z noseparate-code
 #objdump: -dw
index aeb75247aad077ff0e4158fa5c3726f8fcd678a6..4d8e9ab42923452d26ace803992b563e29611315 100644 (file)
@@ -1,5 +1,5 @@
 #source: bnd-ifunc-1.s
-#as: --64 -madd-bnd-prefix
+#as: --64 -madd-bnd-prefix -mx86-used-note=no
 #ld: -z now -shared -melf_x86_64 -z bndplt --hash-style=sysv -z max-page-size=0x200000 -z noseparate-code
 #objdump: -dw
 
index 790e107586beb4a71ae62704e268d036d3397052..800dba02dc95ad5aaa3a919f5debe5ae8f84fe64 100644 (file)
@@ -1,5 +1,5 @@
 #source: bnd-ifunc-2.s
-#as: --64 -madd-bnd-prefix
+#as: --64 -madd-bnd-prefix -mx86-used-note=no
 #ld: -z now -shared -melf_x86_64 -z bndplt --hash-style=sysv -z max-page-size=0x200000 -z noseparate-code
 #objdump: -dw
 
index 3e1997396f2427f07dfb972ecfc30fefe8883b2f..4df715629db25aa7dffb8b7caf07d2e971a20d05 100644 (file)
@@ -1,4 +1,4 @@
-#as: --64 -madd-bnd-prefix
+#as: --64 -madd-bnd-prefix -mx86-used-note=no
 #ld: -shared -melf_x86_64 -z bndplt --hash-style=sysv -z max-page-size=0x200000 -z noseparate-code
 #objdump: -dw
 
index 8720e0e8d9ee92fa394df55581e77b17921a16f7..1d4d8ebd2a945d8ba26564f97204455460470ed0 100644 (file)
@@ -1,5 +1,5 @@
 #source: bnd-branch-1.s
-#as: --64
+#as: --64 -mx86-used-note=no
 #ld: -z now -shared -melf_x86_64 -z bndplt --hash-style=sysv -z max-page-size=0x200000 -z noseparate-code
 #objdump: -dw
 
index 043db114fc8974b58cc1cf65b777457cf50723e8..bd10b6c7af09d13b08079dae4f25481f55fcc83d 100644 (file)
@@ -1,4 +1,4 @@
-#source: bnd-branch-1.s
+#source: bnd-branch-1.s -mx86-used-note=no
 #as: --64
 #ld: -shared -melf_x86_64 -z bndplt --hash-style=sysv -z max-page-size=0x200000 -z noseparate-code
 #objdump: -dw
index 753f7ca2cfc4a042ddee66d0e4acffd6c96dc688..7822221d23794413e359a8e05d32b36f26c30ff5 100644 (file)
@@ -118,15 +118,15 @@ run_ld_link_tests {
     {"Build mpx4"
      "-m elf_x86_64 -z bndplt --hash-style=sysv tmpdir/libcall1.so \
       -z max-page-size=0x200000 -z noseparate-code" ""
-     "--64" {mpx4a.s} {{objdump -dw mpx4.dd}} "mpx4"}
+     "--64 -mx86-used-note=no" {mpx4a.s} {{objdump -dw mpx4.dd}} "mpx4"}
     {"Build mpx3 (-z now)"
      "-z now -m elf_x86_64 -z bndplt --hash-style=sysv tmpdir/libcall.so \
       -z max-page-size=0x200000 -z noseparate-code" ""
-     "--64" {mpx3a.s} {{objdump -dw mpx3n.dd}} "mpx3n"}
+     "--64 -mx86-used-note=no" {mpx3a.s} {{objdump -dw mpx3n.dd}} "mpx3n"}
     {"Build mpx4 (-z now)"
      "-z now -m elf_x86_64 -z bndplt --hash-style=sysv tmpdir/libcall1.so \
       -z max-page-size=0x200000 -z noseparate-code" ""
-     "--64" {mpx4a.s} {{objdump -dw mpx4n.dd}} "mpx4n"}
+     "--64 -mx86-used-note=no" {mpx4a.s} {{objdump -dw mpx4n.dd}} "mpx4n"}
 }
 
 run_ld_link_exec_tests $run_tests
index d03892a2056425dcc4212eb96997d20cec56e5f5..0887803a5846c0df0ffd59c708d83d0be1957d25 100644 (file)
@@ -46,19 +46,19 @@ run_cc_link_tests [list \
     [list \
        "Build no-plt-func1.o no-plt-main1.o" \
        "" \
-       "-fPIE" \
+       "-fPIE -Wa,-mx86-used-note=yes" \
        {no-plt-func1.c no-plt-main1.c} \
     ] \
     [list \
        "Build no-plt-check1.o no-plt-extern1.o" \
        "" \
-       "-Wa,-mrelax-relocations=yes" \
+       "-Wa,-mrelax-relocations=yes,-mx86-used-note=yes" \
        {no-plt-check1.S no-plt-extern1.S} \
     ] \
     [list \
        "Build libno-plt-1a.so" \
        "-shared tmpdir/no-plt-func1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        {} \
        "libno-plt-1a.so" \
@@ -66,7 +66,7 @@ run_cc_link_tests [list \
     [list \
        "Build libno-plt-1b.so" \
        "-shared tmpdir/no-plt-extern1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        {{readelf -Wr libno-plt-1b.rd} \
         {objdump -dwrj.text libno-plt-1b.dd}} \
@@ -76,7 +76,7 @@ run_cc_link_tests [list \
        "No PLT (dynamic 1a)" \
        "$NOPIE_LDFLAGS tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/no-plt-extern1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        {{readelf -Wr no-plt-1a.rd} {objdump -dwrj.text no-plt-1a.dd}} \
        "no-plt-1a" \
@@ -85,7 +85,7 @@ run_cc_link_tests [list \
        "No PLT (dynamic 1b)" \
        "tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
         tmpdir/libno-plt-1a.so tmpdir/libno-plt-1b.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        {{readelf -Wr no-plt-1b.rd} {objdump -dwrj.text no-plt-1b.dd}} \
        "no-plt-1b" \
@@ -94,7 +94,7 @@ run_cc_link_tests [list \
        "No PLT (dynamic 1c)" \
        "$NOPIE_LDFLAGS tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/libno-plt-1b.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        {{readelf -Wr no-plt-1c.rd} {objdump -dwrj.text no-plt-1c.dd}} \
        "no-plt-1c" \
@@ -103,7 +103,7 @@ run_cc_link_tests [list \
        "No PLT (static 1d)" \
        "-static tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/no-plt-extern1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        {{readelf -Wr no-plt-1d.rd} {objdump -dwrj.text no-plt-1d.dd}} \
        "no-plt-1d" \
@@ -112,7 +112,7 @@ run_cc_link_tests [list \
        "No PLT (PIE 1e)" \
        "-pie tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/no-plt-extern1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        {{readelf -Wr no-plt-1e.rd} {nm -gD no-plt-1e.nd} {objdump -dwrj.text no-plt-1e.dd}} \
        "no-plt-1e" \
@@ -121,7 +121,7 @@ run_cc_link_tests [list \
        "No PLT (PIE 1f)" \
        "-pie tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
         tmpdir/libno-plt-1a.so tmpdir/libno-plt-1b.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        {{readelf -Wr no-plt-1f.rd} {objdump -dwrj.text no-plt-1f.dd}} \
        "no-plt-1f" \
@@ -130,7 +130,7 @@ run_cc_link_tests [list \
        "No PLT (PIE 1g)" \
        "-pie tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/libno-plt-1b.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        {{readelf -Wr no-plt-1g.rd} {objdump -dwrj.text no-plt-1g.dd}} \
        "no-plt-1g" \
@@ -142,7 +142,7 @@ run_ld_link_exec_tests [list \
        "No PLT (dynamic 1a)" \
        "tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/no-plt-extern1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "no-plt-1a" \
        "pass.out" \
@@ -151,7 +151,7 @@ run_ld_link_exec_tests [list \
        "No PLT (dynamic 1b)" \
        "tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
         tmpdir/libno-plt-1a.so tmpdir/libno-plt-1b.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "no-plt-1b" \
        "pass.out" \
@@ -160,7 +160,7 @@ run_ld_link_exec_tests [list \
        "No PLT (dynamic 1c)" \
        "tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/libno-plt-1b.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "no-plt-1c" \
        "pass.out" \
@@ -169,7 +169,7 @@ run_ld_link_exec_tests [list \
        "No PLT (static 1d)" \
        "-static tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/no-plt-extern1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "no-plt-1d" \
        "pass.out" \
@@ -178,7 +178,7 @@ run_ld_link_exec_tests [list \
        "No PLT (PIE 1e)" \
        "-pie tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/no-plt-extern1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "no-plt-1e" \
        "pass.out" \
@@ -187,7 +187,7 @@ run_ld_link_exec_tests [list \
        "No PLT (PIE 1f)" \
        "-pie tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
         tmpdir/libno-plt-1a.so tmpdir/libno-plt-1b.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "no-plt-1f" \
        "pass.out" \
@@ -196,7 +196,7 @@ run_ld_link_exec_tests [list \
        "No PLT (PIE 1g)" \
        "-pie tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
         tmpdir/no-plt-func1.o tmpdir/libno-plt-1b.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "no-plt-1g" \
        "pass.out" \
@@ -209,14 +209,14 @@ if { [check_ifunc_available] } {
        [list \
            "Build pr20253-2a.o pr20253-2b.o pr20253-2c.o pr20253-2d.o" \
            "" \
-           "-fPIE -O2 -g" \
+           "-fPIE -O2 -g -Wa,-mx86-used-note=yes" \
            { pr20253-2a.c pr20253-2b.S pr20253-2c.S pr20253-2d.S } \
        ] \
        [list \
            "Build libpr20253-2a.so" \
            "-shared tmpdir/pr20253-2b.o \
             tmpdir/pr20253-2c.o tmpdir/pr20253-2d.o" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            {} \
            "libpr20253-2a.so" \
@@ -228,7 +228,7 @@ if { [check_ifunc_available] } {
            "Run pr20253-2a" \
            "tmpdir/pr20253-2a.o tmpdir/pr20253-2b.o \
             tmpdir/pr20253-2c.o tmpdir/pr20253-2d.o" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            "pr20253-2a" \
            "pass.out" \
@@ -237,7 +237,7 @@ if { [check_ifunc_available] } {
            "Run pr20253-2b" \
            "--static tmpdir/pr20253-2a.o tmpdir/pr20253-2b.o \
            tmpdir/pr20253-2c.o tmpdir/pr20253-2d.o" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            "pr20253-2b" \
            "pass.out" \
@@ -246,7 +246,7 @@ if { [check_ifunc_available] } {
            "Run pr20253-2c" \
            "-pie tmpdir/pr20253-2a.o tmpdir/pr20253-2b.o \
            tmpdir/pr20253-2c.o tmpdir/pr20253-2d.o" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            "pr20253-2c" \
            "pass.out" \
@@ -254,7 +254,7 @@ if { [check_ifunc_available] } {
        [list \
            "Run pr20253-2d" \
            "tmpdir/pr20253-2a.o tmpdir/libpr20253-2a.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            "pr20253-2d" \
            "pass.out" \
@@ -262,7 +262,7 @@ if { [check_ifunc_available] } {
        [list \
            "Run pr20253-2e" \
            "-pie tmpdir/pr20253-2a.o tmpdir/libpr20253-2a.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            "pr20253-2e" \
            "pass.out" \
@@ -270,7 +270,7 @@ if { [check_ifunc_available] } {
        [list \
            "Run pr20253-2f" \
            "$NOPIE_LDFLAGS tmpdir/pr20253-2a.o" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr20253-2b.S pr20253-2c.S pr20253-2d.S } \
            "pr20253-2f" \
            "pass.out" \
@@ -279,7 +279,7 @@ if { [check_ifunc_available] } {
        [list \
            "Run pr20253-2g" \
            "--static tmpdir/pr20253-2a.o" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr20253-2b.S pr20253-2c.S pr20253-2d.S } \
            "pr20253-2g" \
            "pass.out" \
index 6d9fa68cdb435072d6cf805dae54f3674c31e188..7ee8b6e1592a2fe15bb984df4e28021f6c2ea2fe 100644 (file)
@@ -1,6 +1,6 @@
 #source: pr23486a.s
 #source: pr23486b.s
-#as: --x32
+#as: --x32 -mx86-used-note=no
 #ld: -r -m elf32_x86_64
 #readelf: -n
 
index dc2b7bf760505a3b3b17a42de63f36f0a4e6cb58..377099ce5417a62e6b08e4470b6fa992a73fc230 100644 (file)
@@ -1,6 +1,6 @@
 #source: pr23486a.s
 #source: pr23486b.s
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=no
 #ld: -r -m elf_x86_64
 #readelf: -n
 
index 0445e69d82a3bd2ea018ef4c8df9106f349e371a..22eff2fd7e8547d642c9343ff58b1f106d6b4b3e 100644 (file)
@@ -1,6 +1,6 @@
 #source: pr23486b.s
 #source: pr23486a.s
-#as: --x32
+#as: --x32 -mx86-used-note=no
 #ld: -r -m elf32_x86_64
 #readelf: -n
 
index dd0fe8814308a51f44a9cff8686d4f80bbbe7084..ff6672dc45c9b6f335a98318e412b7e7401c5cb2 100644 (file)
@@ -1,6 +1,6 @@
 #source: pr23486b.s
 #source: pr23486a.s
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=no
 #ld: -r -m elf_x86_64
 #readelf: -n
 
diff --git a/ld/testsuite/ld-x86-64/property-1a.r b/ld/testsuite/ld-x86-64/property-1a.r
new file mode 100644 (file)
index 0000000..aa08fc9
--- /dev/null
@@ -0,0 +1,9 @@
+#...
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x[0-9a-f]+     NT_GNU_PROPERTY_TYPE_0
+      Properties: no copy on protected 
+       x86 ISA used: <None>
+       x86 feature used: x86
+
+#pass
diff --git a/ld/testsuite/ld-x86-64/property-2a.r b/ld/testsuite/ld-x86-64/property-2a.r
new file mode 100644 (file)
index 0000000..f6858d4
--- /dev/null
@@ -0,0 +1,9 @@
+#...
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x[0-9a-f]+     NT_GNU_PROPERTY_TYPE_0
+      Properties: stack size: 0x800000
+       x86 ISA used: <None>
+       x86 feature used: x86
+
+#pass
diff --git a/ld/testsuite/ld-x86-64/property-3a.r b/ld/testsuite/ld-x86-64/property-3a.r
new file mode 100644 (file)
index 0000000..13a551e
--- /dev/null
@@ -0,0 +1,9 @@
+#...
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x[0-9a-f]+     NT_GNU_PROPERTY_TYPE_0
+      Properties: stack size: 0x800000
+       x86 ISA needed: CMOV, SSE
+       x86 ISA used: SSE, SSE3
+       x86 feature used: x86
+#pass
diff --git a/ld/testsuite/ld-x86-64/property-4a.r b/ld/testsuite/ld-x86-64/property-4a.r
new file mode 100644 (file)
index 0000000..46d1600
--- /dev/null
@@ -0,0 +1,9 @@
+#...
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x[0-9a-f]+     NT_GNU_PROPERTY_TYPE_0
+      Properties: stack size: 0x800000
+       x86 ISA needed: CMOV, SSE, SSE3
+       x86 ISA used: CMOV, SSE, SSE3
+       x86 feature used: x86
+#pass
diff --git a/ld/testsuite/ld-x86-64/property-5a.r b/ld/testsuite/ld-x86-64/property-5a.r
new file mode 100644 (file)
index 0000000..23c8f44
--- /dev/null
@@ -0,0 +1,9 @@
+#...
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x[0-9a-f]+     NT_GNU_PROPERTY_TYPE_0
+      Properties: stack size: 0x900000
+       x86 ISA needed: CMOV, SSE, SSE3
+       x86 ISA used: CMOV, SSE, SSE3
+       x86 feature used: x86
+#pass
diff --git a/ld/testsuite/ld-x86-64/property-7a.r b/ld/testsuite/ld-x86-64/property-7a.r
new file mode 100644 (file)
index 0000000..7874269
--- /dev/null
@@ -0,0 +1,8 @@
+#...
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x[0-9a-f]+     NT_GNU_PROPERTY_TYPE_0
+      Properties: stack size: 0x800000
+       no copy on protected 
+       x86 ISA used: <None>
+       x86 feature used: x86
index d70224a1f3981abe398f17a7bb6a71c3d0c41ae6..5c7c502bb1607e498a80803816398f05bf4db8f2 100644 (file)
@@ -1,10 +1,11 @@
 #source: property-x86-3.s
-#as: --x32
+#as: --x32 -mx86-used-note=yes
 #ld: -shared -m elf32_x86_64
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x00000018      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 ISA needed: CMOV, SSE, SSSE3, SSE4_1
        x86 ISA used: SSE, SSE3, SSE4_1, AVX
+       x86 feature used: x86
index 2cd5c8fcef83009d932ee248faa2ce9f886f6099..815d5a3d62fa46ca27617a09246cd77d4690489a 100644 (file)
@@ -1,9 +1,10 @@
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
 #ld: -shared -m elf_x86_64
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x00000020      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000030      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 ISA needed: CMOV, SSE, SSSE3, SSE4_1
        x86 ISA used: SSE, SSE3, SSE4_1, AVX
+       x86 feature used: x86
index 90125135332337dc4f65bf5166a95783892ce6e7..7c6a2e129b1a7de5c4cb3b5d245f0e0e6bce5f62 100644 (file)
@@ -1,10 +1,13 @@
 #source: property-x86-4a.s
 #source: property-x86-4b.s
-#as: --x32
+#as: --x32 -mx86-used-note=yes
 #ld: -m elf32_x86_64 --gc-sections --entry=main
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x00000008      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x0000002c      NT_GNU_PROPERTY_TYPE_0
       Properties: no copy on protected 
+       x86 feature needed: x86
+       x86 ISA used: <None>
+       x86 feature used: x86
index 5e8cf4cf84850d32c2fd0f1ea9c356946af4eb2f..8637ed4e9822dad460a2701aca1e29a62193d59a 100644 (file)
@@ -1,10 +1,13 @@
 #source: property-x86-4a.s
 #source: property-x86-4b.s
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
 #ld: -m elf_x86_64 --gc-sections --entry=main
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x00000008      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000038      NT_GNU_PROPERTY_TYPE_0
       Properties: no copy on protected 
+       x86 feature needed: x86
+       x86 ISA used: <None>
+       x86 feature used: x86
index b215d79debff22fe4689db83223732a1b09edfcb..7a95401ac3d5df772d98c2c53723ad8ef4b23309 100644 (file)
@@ -1,6 +1,11 @@
 #source: property-x86-empty.s
 #source: property-x86-ibt.s
-#as: --x32
+#as: --x32 -mx86-used-note=yes
 #ld: -r -m elf32_x86_64
 #readelf: -n
 
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x00000018      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index 50f220caed5890268101e34bb93a15640a0fe5ac..e989a8a8177c88466cc6845b3be92579380a9123 100644 (file)
@@ -1,6 +1,11 @@
 #source: property-x86-empty.s
 #source: property-x86-ibt.s
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
 #ld: -r -melf_x86_64
 #readelf: -n
 
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x00000020      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index 7361cea819218acc23b292d0c72bd32c31483b00..302db4a35bbb374592371afa7ec8a74a37e75b2a 100644 (file)
@@ -1,6 +1,11 @@
 #source: property-x86-ibt.s
 #source: property-x86-empty.s
-#as: --x32
+#as: --x32 -mx86-used-note=yes
 #ld: -r -m elf32_x86_64
 #readelf: -n
 
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x00000018      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index 7f47db7e01d1defa813fea6d00898eda42bf1020..6c4e67d8652f15e94a9ca7a9aaedbce908a63e28 100644 (file)
@@ -1,6 +1,11 @@
 #source: property-x86-ibt.s
 #source: property-x86-empty.s
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
 #ld: -r -melf_x86_64
 #readelf: -n
 
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x00000020      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index a0fb61436d476604aca4960fff20558d13dd735d..062ca1d8923ce577707d4579632b3ff7533b9ad0 100644 (file)
@@ -1,9 +1,11 @@
 #source: property-x86-ibt.s
-#as: --x32
+#as: --x32 -mx86-used-note=yes
 #ld: -r -m elf32_x86_64
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: IBT
+       x86 ISA used: <None>
+       x86 feature used: x86
index be3df9c7ac9000b0dde9853bd93817aa3965e302..6a9167f6f1849166e219d75f1a618d7968bf6338 100644 (file)
@@ -1,9 +1,11 @@
 #source: property-x86-ibt.s
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
 #ld: -r -melf_x86_64
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x00000010      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000030      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: IBT
+       x86 ISA used: <None>
+       x86 feature used: x86
index f87ecff6af0126aa7dfcf9e3290fae911e88120b..e8e5b6a118992badcde79e0d8a24481aa216d981 100644 (file)
@@ -1,10 +1,12 @@
 #source: property-x86-3.s
 #source: property-x86-ibt.s
-#as: --x32
+#as: --x32 -mx86-used-note=yes
 #ld: -r -m elf32_x86_64
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 ISA needed: CMOV, SSE, SSSE3, SSE4_1
+       x86 ISA used: SSE, SSE3, SSE4_1, AVX
+       x86 feature used: x86
index 902691395c0d708f4e83da26d22887a07a410d2c..9c1d68c71bd3395096b712d20bac3ec6f7a9d9af 100644 (file)
@@ -1,10 +1,12 @@
 #source: property-x86-3.s
 #source: property-x86-ibt.s
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
 #ld: -r -melf_x86_64
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x00000010      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000030      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 ISA needed: CMOV, SSE, SSSE3, SSE4_1
+       x86 ISA used: SSE, SSE3, SSE4_1, AVX
+       x86 feature used: x86
index 45f6037ad77b6e840af53671c338f14dac4e89c2..f31dc3d850f63965b2dbc92832422b3f0f9b5bce 100644 (file)
@@ -1,10 +1,12 @@
 #source: property-x86-ibt.s
 #source: property-x86-3.s
-#as: --x32
+#as: --x32 -mx86-used-note=yes
 #ld: -r -m elf32_x86_64
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 ISA needed: CMOV, SSE, SSSE3, SSE4_1
+       x86 ISA used: SSE, SSE3, SSE4_1, AVX
+       x86 feature used: x86
index 259e333bcd036151bd394cc3107e37567b6c7bf6..3d3fb7f4932dd3416743d32223ebe2439237dc57 100644 (file)
@@ -1,10 +1,12 @@
 #source: property-x86-ibt.s
 #source: property-x86-3.s
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
 #ld: -r -melf_x86_64
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x00000010      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000030      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 ISA needed: CMOV, SSE, SSSE3, SSE4_1
+       x86 ISA used: SSE, SSE3, SSE4_1, AVX
+       x86 feature used: x86
index b96abbcebe1cb30d9b9d6978b57a16c9d6734cf9..648a4ebfb764b13cce476186ea88f99b219d5296 100644 (file)
@@ -1,9 +1,11 @@
 #source: property-x86-empty.s
-#as: --x32
+#as: --x32 -mx86-used-note=yes
 #ld: -r -m elf32_x86_64 -z ibt
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: IBT
+       x86 ISA used: <None>
+       x86 feature used: x86
index 3f61a7691e07badabbcf56222fa019afc16bdf66..7aac22dfef2bfee8fd1c90b04cdd3e3cd5851c1e 100644 (file)
@@ -1,9 +1,11 @@
 #source: property-x86-empty.s
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
 #ld: -r -melf_x86_64 -z ibt
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x00000010      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000030      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: IBT
+       x86 ISA used: <None>
+       x86 feature used: x86
index 5245d0bc90977f4e35282abdf965d5202305e4d5..87f802d792dda5f589dc951d4880227baf419e4c 100644 (file)
@@ -1,9 +1,11 @@
 #source: start.s
-#as: --x32
+#as: --x32 -mx86-used-note=yes
 #ld: -r -m elf32_x86_64 -z ibt
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: IBT
+       x86 ISA used: <None>
+       x86 feature used: x86
index ab74033455a0e2ea66d2b364b3dc9fd0a10adfa0..05974a6e34cee4f090eeefb3a6038fbe18116b52 100644 (file)
@@ -1,9 +1,11 @@
 #source: start.s
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
 #ld: -r -melf_x86_64 -z ibt
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x00000010      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000030      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: IBT
+       x86 ISA used: <None>
+       x86 feature used: x86
index 312d1ea122353f1b353d861ae4b56ed40655ee17..682ec6478a47e1f3cf684d8d7111e56300721726 100644 (file)
@@ -1,6 +1,11 @@
 #source: property-x86-empty.s
 #source: property-x86-shstk.s
-#as: --x32
+#as: --x32 -mx86-used-note=yes
 #ld: -r -m elf32_x86_64
 #readelf: -n
 
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x00000018      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index 39a996e22cb7dfda76c3a172fd98bd0de5f3f811..7a148622968a74ea71e5f75c28b3d9328e193c13 100644 (file)
@@ -1,6 +1,11 @@
 #source: property-x86-empty.s
 #source: property-x86-shstk.s
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
 #ld: -r -melf_x86_64
 #readelf: -n
 
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x00000020      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index 9e91c5c7534f906a737806c480f7c7fb1bb389d7..f36edc76f7574b791ac59132e55149e9399b7807 100644 (file)
@@ -1,6 +1,11 @@
 #source: property-x86-shstk.s
 #source: property-x86-empty.s
-#as: --x32
+#as: --x32 -mx86-used-note=yes
 #ld: -r -m elf32_x86_64
 #readelf: -n
 
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x00000018      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index a9b9e626a44ca9c3683a70674c2a469e0d163431..1067547e33d795e5caa27d5cd33d910600378f4d 100644 (file)
@@ -1,6 +1,11 @@
 #source: property-x86-shstk.s
 #source: property-x86-empty.s
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
 #ld: -r -melf_x86_64
 #readelf: -n
 
+Displaying notes found in: .note.gnu.property
+  Owner                 Data size      Description
+  GNU                  0x00000020      NT_GNU_PROPERTY_TYPE_0
+      Properties: x86 ISA used: <None>
+       x86 feature used: x86
index 7155f3feac2c30cfa5ac20498c62c6da03c58df0..959e45f986b1ee8b4742022552f18f83d45fcb8d 100644 (file)
@@ -1,9 +1,11 @@
 #source: property-x86-shstk.s
-#as: --x32
+#as: --x32 -mx86-used-note=yes
 #ld: -r -m elf32_x86_64
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: SHSTK
+       x86 ISA used: <None>
+       x86 feature used: x86
index 7fbafe82458f91ed17be1d5ecf8a77bc9d9cc643..2945d29213b1534d87caba207cef9bf1e07bb2ed 100644 (file)
@@ -1,9 +1,11 @@
 #source: property-x86-shstk.s
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
 #ld: -r -melf_x86_64
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x00000010      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000030      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: SHSTK
+       x86 ISA used: <None>
+       x86 feature used: x86
index 85fcb6b353736932ce23ec56d11caa53de61e887..10a9d968ea3e2112cb975fbb80c4b25b06492a29 100644 (file)
@@ -1,10 +1,12 @@
 #source: property-x86-3.s
 #source: property-x86-shstk.s
-#as: --x32
+#as: --x32 -mx86-used-note=yes
 #ld: -r -m elf32_x86_64
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 ISA needed: CMOV, SSE, SSSE3, SSE4_1
+       x86 ISA used: SSE, SSE3, SSE4_1, AVX
+       x86 feature used: x86
index 0eb42e7ab2eb7aa6c1e1e5cfeb6c578d1d256d8a..d321422f8c8973fa631e7295e0c319f902ef1f11 100644 (file)
@@ -1,10 +1,12 @@
 #source: property-x86-3.s
 #source: property-x86-shstk.s
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
 #ld: -r -melf_x86_64
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x00000010      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000030      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 ISA needed: CMOV, SSE, SSSE3, SSE4_1
+       x86 ISA used: SSE, SSE3, SSE4_1, AVX
+       x86 feature used: x86
index 23a8be6a232dcf550003bd9c5585f9ce72236312..5f17ed10c06c1cc44a28b7ac09c87f3aaa2aeb49 100644 (file)
@@ -1,10 +1,12 @@
 #source: property-x86-shstk.s
 #source: property-x86-3.s
-#as: --x32
+#as: --x32 -mx86-used-note=yes
 #ld: -r -m elf32_x86_64
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 ISA needed: CMOV, SSE, SSSE3, SSE4_1
+       x86 ISA used: SSE, SSE3, SSE4_1, AVX
+       x86 feature used: x86
index 152eea5353cd5de49740b7f7171ed99c85c343fd..582319d6d2693d55a480f5a2d426df7250c05af1 100644 (file)
@@ -1,10 +1,12 @@
 #source: property-x86-shstk.s
 #source: property-x86-3.s
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
 #ld: -r -melf_x86_64
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x00000010      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000030      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 ISA needed: CMOV, SSE, SSSE3, SSE4_1
+       x86 ISA used: SSE, SSE3, SSE4_1, AVX
+       x86 feature used: x86
index 61b782694712ede587e95ff36e1926c8828713b0..e612be4a737da27782748606f1516b5fd127f88c 100644 (file)
@@ -1,9 +1,11 @@
 #source: property-x86-empty.s
-#as: --x32
+#as: --x32 -mx86-used-note=yes
 #ld: -r -m elf32_x86_64 -z shstk
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: SHSTK
+       x86 ISA used: <None>
+       x86 feature used: x86
index c2a7b363a840185130affc9e765a8be06e1c8a66..3fe0d1861bd541addda49ba81428d322eef656ab 100644 (file)
@@ -1,9 +1,11 @@
 #source: property-x86-empty.s
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
 #ld: -r -melf_x86_64 -z shstk
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x00000010      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000030      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: SHSTK
+       x86 ISA used: <None>
+       x86 feature used: x86
index 83c6a6866c13c8b4d3ff0167f25693bb67d3cdec..bcb4b9d0b9dac5994de5df177954b4b1704cc546 100644 (file)
@@ -1,9 +1,11 @@
 #source: start.s
-#as: --x32
+#as: --x32 -mx86-used-note=yes
 #ld: -r -m elf32_x86_64 -z shstk
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x0000000c      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000024      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: SHSTK
+       x86 ISA used: <None>
+       x86 feature used: x86
index 9a4b1861586f14aac07d6ab67aaa5dc33db7ff1c..c8d0424981d5399fdb350116072e2353cf4fc8db 100644 (file)
@@ -1,9 +1,11 @@
 #source: start.s
-#as: --64 -defsym __64_bit__=1
+#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
 #ld: -r -melf_x86_64 -z shstk
 #readelf: -n
 
 Displaying notes found in: .note.gnu.property
   Owner                 Data size      Description
-  GNU                  0x00000010      NT_GNU_PROPERTY_TYPE_0
+  GNU                  0x00000030      NT_GNU_PROPERTY_TYPE_0
       Properties: x86 feature: SHSTK
+       x86 ISA used: <None>
+       x86 feature used: x86
index bf2c3b63c44985456072750df9a52931bd5f3dd5..217bac5759240ba51b40ba4079ec54fa5944cc00 100644 (file)
@@ -40,19 +40,19 @@ run_cc_link_tests [list \
     [list \
        "Build tls-def1.o tls-main1.o" \
        "" \
-       "-fPIE" \
+       "-fPIE -Wa,-mx86-used-note=yes" \
        {tls-def1.c tls-main1.c} \
     ] \
     [list \
        "Build tls-gd1.o tls-ld1.o" \
        "" \
-       "-fPIC -Wa,-mrelax-relocations=yes" \
+       "-fPIC -Wa,-mrelax-relocations=yes,-mx86-used-note=yes" \
        {tls-gd1.S tls-ld1.S} \
     ] \
     [list \
        "Build libtls-1a.so" \
        "-shared tmpdir/tls-def1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        {} \
        "libtls-1a.so" \
@@ -60,7 +60,7 @@ run_cc_link_tests [list \
     [list \
        "Build libtls-1b.so" \
        "-shared tmpdir/tls-gd1.o tmpdir/tls-ld1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        {} \
        "libtls-1b.so" \
@@ -68,7 +68,7 @@ run_cc_link_tests [list \
     [list \
        "Build libtls-1bn.so" \
        "-Wl,-z,now -shared tmpdir/tls-gd1.o tmpdir/tls-ld1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        {dummy.s} \
        {} \
        "libtls-1bn.so" \
@@ -80,7 +80,7 @@ run_ld_link_exec_tests [list \
        "TLS GD/LD -> LE transition without PLT (dynamic)" \
        "tmpdir/tls-def1.o tmpdir/tls-main1.o tmpdir/tls-gd1.o \
         tmpdir/tls-ld1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "tls-1a" \
        "pass.out" \
@@ -89,7 +89,7 @@ run_ld_link_exec_tests [list \
        "TLS GD/LD -> LE transition without PLT (dynamic, -z now)" \
        "-Wl,-z,now tmpdir/tls-def1.o tmpdir/tls-main1.o tmpdir/tls-gd1.o \
         tmpdir/tls-ld1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "tls-1an" \
        "pass.out" \
@@ -98,7 +98,7 @@ run_ld_link_exec_tests [list \
        "TLS GD/LD -> LE transition without PLT (PIE)" \
        "-pie tmpdir/tls-def1.o tmpdir/tls-main1.o tmpdir/tls-gd1.o \
         tmpdir/tls-ld1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "tls-1b" \
        "pass.out" \
@@ -107,7 +107,7 @@ run_ld_link_exec_tests [list \
        "TLS GD/LD -> LE transition without PLT (PIE, -z now)" \
        "-pie -Wl,-z,now tmpdir/tls-def1.o tmpdir/tls-main1.o tmpdir/tls-gd1.o \
         tmpdir/tls-ld1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "tls-1bn" \
        "pass.out" \
@@ -116,7 +116,7 @@ run_ld_link_exec_tests [list \
        "TLS GD/LD -> LE transition without PLT (static)" \
        "-static tmpdir/tls-def1.o tmpdir/tls-main1.o tmpdir/tls-gd1.o \
         tmpdir/tls-ld1.o" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "tls-1c" \
        "pass.out" \
@@ -125,7 +125,7 @@ run_ld_link_exec_tests [list \
        "TLS GD/LD -> IE transition without PLT" \
        "-Wl,--no-as-needed,-R,tmpdir tmpdir/tls-main1.o \
         tmpdir/tls-gd1.o tmpdir/tls-ld1.o tmpdir/libtls-1a.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "tls-1d" \
        "pass.out" \
@@ -134,7 +134,7 @@ run_ld_link_exec_tests [list \
        "TLS GD/LD -> IE transition without PLT (-z now)" \
        "-Wl,-z,now tmpdir/tls-main1.o tmpdir/tls-gd1.o tmpdir/tls-ld1.o \
         tmpdir/libtls-1a.so -Wl,-R,tmpdir" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "tls-1dn" \
        "pass.out" \
@@ -143,7 +143,7 @@ run_ld_link_exec_tests [list \
        "TLS without PLT (1)" \
        "-Wl,--no-as-needed,-R,tmpdir tmpdir/tls-main1.o \
         tmpdir/libtls-1a.so tmpdir/libtls-1b.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "tls-1e" \
        "pass.out" \
@@ -152,7 +152,7 @@ run_ld_link_exec_tests [list \
        "TLS without PLT (2)" \
        "-Wl,--no-as-needed,-R,tmpdir tmpdir/tls-main1.o \
         tmpdir/tls-def1.o tmpdir/libtls-1b.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "tls-1f" \
        "pass.out" \
@@ -161,7 +161,7 @@ run_ld_link_exec_tests [list \
        "TLS without PLT (3)" \
        "-Wl,--no-as-needed -Wl,-z,now tmpdir/tls-main1.o \
         tmpdir/libtls-1a.so tmpdir/libtls-1bn.so -Wl,-R,tmpdir" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "tls-1en" \
        "pass.out" \
@@ -170,7 +170,7 @@ run_ld_link_exec_tests [list \
        "TLS without PLT (4)" \
        "-Wl,-z,now tmpdir/tls-main1.o tmpdir/tls-def1.o \
         tmpdir/libtls-1bn.so -Wl,-R,tmpdir" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { dummy.s } \
        "tls-1fn" \
        "pass.out" \
@@ -186,7 +186,7 @@ run_cc_link_tests [list \
     [list \
        "Build libtlsdesc1.so" \
        "-shared" \
-       "-fPIC $GNU2_CFLAGS" \
+       "-fPIC $GNU2_CFLAGS -Wa,-mx86-used-note=yes" \
        { tlsdesc1b.c } \
        {} \
        "libtlsdesc1.so" \
@@ -194,7 +194,7 @@ run_cc_link_tests [list \
     [list \
        "Build libtlsdesc1n.so" \
        "-Wl,-z,now -shared" \
-       "-fPIC $GNU2_CFLAGS" \
+       "-fPIC $GNU2_CFLAGS -Wa,-mx86-used-note=yes" \
        { tlsdesc1b.c } \
        {} \
        "libtlsdesc1n.so" \
@@ -211,7 +211,7 @@ if { [at_least_gcc_version 5 0] } {
        [list \
            "Run tlsdesc1" \
            "-Wl,--no-as-needed tmpdir/libtlsdesc1.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { tlsdesc1a.c } \
            "tlsdesc1a" \
            "pass.out" \
@@ -220,7 +220,7 @@ if { [at_least_gcc_version 5 0] } {
        [list \
            "Run tlsdesc1 with PIE" \
            "-pie -Wl,--no-as-needed tmpdir/libtlsdesc1.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { tlsdesc1a.c } \
            "tlsdesc1c" \
            "pass.out" \
@@ -233,7 +233,7 @@ run_ld_link_exec_tests [list \
     [list \
        "Run tlsdesc1 (-z now)" \
        "-Wl,-z,now -Wl,--no-as-needed tmpdir/libtlsdesc1n.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { tlsdesc1a.c } \
        "tlsdesc1b" \
        "pass.out" \
@@ -242,7 +242,7 @@ run_ld_link_exec_tests [list \
     [list \
        "Run tlsdesc1 with PIE (-z now)" \
        "-pie -Wl,-z,now -Wl,--no-as-needed tmpdir/libtlsdesc1n.so" \
-       "" \
+       "-Wa,-mx86-used-note=yes" \
        { tlsdesc1a.c } \
        "tlsdesc1d" \
        "pass.out" \
index 5c1f90c9d3b98f32aec8061700c93834ef5c25ea..db65810f1f3f2566412875a7119227caaf928306 100644 (file)
@@ -34,6 +34,10 @@ if [istarget "*-*-nacl*"] {
     set emul "elf_x86_64"
 }
 
+global ASFLAGS
+set saved_ASFLAGS "$ASFLAGS"
+set ASFLAGS "$ASFLAGS -mx86-used-note=no"
+
 # List contains test-items with 3 items followed by 2 lists:
 # 0:name 1:ld early options 2:ld late options 3:assembler options
 # 4:filenames of assembler files 5: action and options. 6: name of output file
@@ -708,7 +712,8 @@ if { [isnative] && [which $CC] != 0 } {
 
     run_ld_link_tests {
        {"X32 DSO from x86-64 object"
-        "-shared -melf32_x86_64 tmpdir/simple-x32.o" "" "--x32"
+        "-shared -melf32_x86_64 tmpdir/simple-x32.o" ""
+        "--x32 -mx86-used-note=yes"
        {dummy.s} {{readelf {-s --wide} x86-64-x32.rd}} "x86-64-x32"}
     }
 
@@ -716,7 +721,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build plt-lib.so" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=yes" \
            { plt-lib.c } \
            {} \
            "libplt-lib.so" \
@@ -724,7 +729,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build libplt-main1.a" \
            "" \
-           "-fPIC -Wa,-mrelax-relocations=yes" \
+           "-fPIC -Wa,-mrelax-relocations=yes,-mx86-used-note=yes" \
            { plt-main1.c } \
            {{readelf {-Wr} plt-main1.rd}} \
            "libplt-main1.a" \
@@ -732,7 +737,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build libplt-main2.a" \
            "" \
-           "-fPIC -Wa,-mrelax-relocations=yes" \
+           "-fPIC -Wa,-mrelax-relocations=yes,-mx86-used-note=yes" \
            { plt-main2.c } \
            {{readelf {-Wr} plt-main2.rd}} \
            "libplt-main2.a" \
@@ -740,7 +745,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build libplt-main3.a" \
            "" \
-           "-fPIC -Wa,-mrelax-relocations=yes $PLT_CFLAGS" \
+           "-fPIC -Wa,-mrelax-relocations=yes,-mx86-used-note=yes $PLT_CFLAGS" \
            { plt-main3.c } \
            {{readelf {-Wr} plt-main3.rd}} \
            "libplt-main3.a" \
@@ -748,7 +753,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build libplt-main4.a" \
            "" \
-           "-fPIC -Wa,-mrelax-relocations=yes $PLT_CFLAGS" \
+           "-fPIC -Wa,-mrelax-relocations=yes,-mx86-used-note=yes $PLT_CFLAGS" \
            { plt-main4.c } \
            {{readelf {-Wr} plt-main4.rd}} \
            "libplt-main4.a" \
@@ -766,7 +771,7 @@ if { [isnative] && [which $CC] != 0 } {
            "Build plt-main with PIE" \
            "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
             tmpdir/plt-main4.o tmpdir/libplt-lib.so -pie" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=yes" \
            { plt-main5.c } \
            {{readelf {-Wr} plt-main.rd}} \
            "plt-main" \
@@ -774,7 +779,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build copyreloc-lib.so" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=yes" \
            { copyreloc-lib.c } \
            {} \
            "copyreloc-lib.so" \
@@ -782,7 +787,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build libcopyreloc-main.a" \
            "" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { copyreloc-main.S } \
            {} \
            "libcopyreloc-main.a" \
@@ -790,7 +795,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build copyreloc-main with PIE without -fPIE (1)" \
            "tmpdir/copyreloc-main.o tmpdir/copyreloc-lib.so -pie" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            {{readelf {-Wr} copyreloc-main1.rd}} \
            "copyreloc-main" \
@@ -798,7 +803,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build copyreloc-main with PIE without -fPIE (2)" \
            "tmpdir/copyreloc-main.o tmpdir/copyreloc-lib.so -pie" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            {{readelf {-Wr} copyreloc-main2.rd}} \
            "copyreloc-main" \
@@ -806,7 +811,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr17689.so" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=yes" \
            { pr17689a.c } \
            {} \
            "pr17689.so" \
@@ -814,7 +819,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr17689now.so with -z now" \
            "-shared -Wl,-z,now" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=yes" \
            { pr17689a.c } \
            {{readelf {-Wr} pr17689now.rd}} \
            "pr17689now.so" \
@@ -822,14 +827,14 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr17689b.o" \
            "" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr17689b.S } \
            {} \
        ] \
        [list \
            "Build pr17689 with PIE without -fPIE" \
            "tmpdir/pr17689b.o tmpdir/pr17689.so -pie" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            {{readelf {-Wr} pr17689.rd}} \
            "pr17689" \
@@ -837,7 +842,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr17689 with PIE -z now without -fPIE" \
            "tmpdir/pr17689b.o tmpdir/pr17689.so -pie -Wl,-z,now" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            {{readelf {-Wr} pr17689now.rd}} \
            "pr17689now" \
@@ -845,7 +850,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr17827 with PIE without -fPIE" \
            "-Wl,--as-needed tmpdir/pr17689b.o tmpdir/pr17689.so -pie" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            {{readelf {-Wr} pr17827.rd}} \
            "pr17827" \
@@ -853,7 +858,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr18900.so" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=yes" \
            { pr18900a.c } \
            "" \
            "pr18900.so" \
@@ -861,7 +866,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr18900.o" \
            "-r -nostdlib" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr18900b.c pr18900c.c } \
            "" \
            "pr18900.o" \
@@ -869,7 +874,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr18900a" \
            "tmpdir/pr18900.o tmpdir/pr18900.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            {{readelf {-Wrd} pr18900a.rd}} \
            "pr18900a" \
@@ -877,7 +882,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr18900b" \
            "-Wl,--as-needed tmpdir/pr18900.o tmpdir/pr18900.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            {{readelf {-Wrd} pr18900b.rd}} \
            "pr18900b" \
@@ -885,7 +890,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr19031.so" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=yes" \
            { pr19031a.c } \
            "" \
            "pr19031.so" \
@@ -893,7 +898,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build gotpcrel1d.so" \
            "-shared" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { gotpcrel1d.S } \
            "" \
            "gotpcrel1d.so" \
@@ -901,7 +906,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build gotpcrel1a.o gotpcrel1b.o gotpcrel1c.o" \
            "" \
-           "-Wa,-mrelax-relocations=yes" \
+           "-Wa,-mrelax-relocations=yes,-mx86-used-note=yes" \
            { gotpcrel1a.S gotpcrel1b.c gotpcrel1c.c } \
        ] \
        [list \
@@ -909,15 +914,15 @@ if { [isnative] && [which $CC] != 0 } {
            "$NOPIE_LDFLAGS -Wl,--as-needed tmpdir/gotpcrel1a.o \
             tmpdir/gotpcrel1b.o tmpdir/gotpcrel1c.o \
             tmpdir/gotpcrel1d.so" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
-           "" \
            {{objdump {-dw} gotpcrel1.dd}} \
            "gotpcrel1" \
        ] \
        [list \
            "Build pr19319.so" \
            "-shared" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr19319a.S } \
            "" \
            "pr19319.so" \
@@ -925,7 +930,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr19319" \
            "-pie -nostdlib -nostartfiles tmpdir/pr19319.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr19319b.S } \
            {{objdump {-dw} pr19319.dd}} \
            "pr19319" \
@@ -933,7 +938,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build property 1" \
            "" \
-           "" \
+           "-Wa,-mx86-used-note=no" \
            {pass.c property-no-copy.S} \
            {{readelf {-n} property-1.r}} \
            "property-1" \
@@ -941,15 +946,15 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build property 1 (.o)" \
            "-r -nostdlib" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-no-copy.S} \
-           {{readelf {-n} property-1.r}} \
+           {{readelf {-n} property-1a.r}} \
            "property-1.o" \
        ] \
        [list \
            "Build property 1 (.so)" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=no" \
            {pass.c property-no-copy.S} \
            {{readelf {-n} property-1.r}} \
            "property-1.so" \
@@ -957,7 +962,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build property 2" \
            "" \
-           "" \
+           "-Wa,-mx86-used-note=no" \
            {pass.c property-stack.S} \
            {{readelf {-n} property-2.r}} \
            "property-2" \
@@ -965,15 +970,15 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build property 2 (.o)" \
            "-r -nostdlib" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-stack.S} \
-           {{readelf {-n} property-2.r}} \
+           {{readelf {-n} property-2a.r}} \
            "property-2.o" \
        ] \
        [list \
            "Build property 2 (.so)" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=yes" \
            {pass.c property-stack.S} \
            {{readelf {-n} property-2.r}} \
            "property-2.so" \
@@ -981,7 +986,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build property 3" \
            "" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-stack.S property-x86-1.S} \
            {{readelf {-n} property-3.r}} \
            "property-3" \
@@ -989,15 +994,15 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build property 3 (.o)" \
            "-r -nostdlib" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-x86-1.S property-stack.S} \
-           {{readelf {-n} property-3.r}} \
+           {{readelf {-n} property-3a.r}} \
            "property-3.o" \
        ] \
        [list \
            "Build property 3 (.so)" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=yes" \
            {property-x86-1.S pass.c property-stack.S} \
            {{readelf {-n} property-3.r}} \
            "property-3.so" \
@@ -1005,7 +1010,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build property 4" \
            "" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
            {{readelf {-n} property-4.r}} \
            "property-4" \
@@ -1013,15 +1018,15 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build property 4 (.o)" \
            "-r -nostdlib" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
-           {{readelf {-n} property-4.r}} \
+           {{readelf {-n} property-4a.r}} \
            "property-4.o" \
        ] \
        [list \
            "Build property 4 (.so)" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=yes" \
            {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
            {{readelf {-n} property-4.r}} \
            "property-4.so" \
@@ -1029,7 +1034,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build property 4 (-Wl,-z,stack-size=0)" \
            "-Wl,-z,stack-size=0" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
            {{readelf {-n} property-4.r}} \
            "property-4" \
@@ -1037,7 +1042,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build property 5" \
            "-Wl,-z,stack-size=0x900000" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
            {{readelf {-n} property-5.r}} \
            "property-5" \
@@ -1045,15 +1050,15 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build property 5 (.o)" \
            "-r -nostdlib -Wl,-z,stack-size=0x900000" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
-           {{readelf {-n} property-5.r}} \
+           {{readelf {-n} property-5a.r}} \
            "property-5.o" \
        ] \
        [list \
            "Build property 5 (.so)" \
            "-shared -Wl,-z,stack-size=0x900000" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=yes" \
            {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
            {{readelf {-n} property-5.r}} \
            "property-5.so" \
@@ -1061,7 +1066,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build property-6.so" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=yes" \
            {property-6a.c property-6c.S} \
            {{readelf {-n} property-6.r}} \
            "property-6.so" \
@@ -1069,39 +1074,39 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build property-6.o" \
            "-r -nostdlib" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {property-6b.c property-stack.S} \
-           {{readelf {-n} property-2.r}} \
+           {{readelf {-n} property-2a.r}} \
            "property-6.o" \
        ] \
        [list \
            "Build property-6" \
            "-Wl,--as-needed tmpdir/property-6.o tmpdir/property-6.so" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
-           "" \
            {{readelf {-n} property-2.r}} \
            "property-6" \
        ] \
        [list \
            "Build property 7a (.o)" \
            "-r -nostdlib" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {property-unsorted-1.S} \
-           {{readelf {-n} property-7.r}} \
+           {{readelf {-n} property-7a.r}} \
            "property-7a.o" \
        ] \
        [list \
            "Build property 7b (.o)" \
            "-r -nostdlib" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {property-unsorted-2.S} \
-           {{readelf {-n} property-7.r}} \
+           {{readelf {-n} property-7a.r}} \
            "property-7b.o" \
        ] \
        [list \
            "Build pr22001-1.so" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=yes" \
            { pr22001-1a.c } \
            {} \
            "pr22001-1.so" \
@@ -1109,7 +1114,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr22001-1a" \
            "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
-           "$NOPIE_CFLAGS" \
+           "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
            { pr22001-1b.c } \
            {{error_output "pr22001-1a.err"}} \
            "pr22001-1a" \
@@ -1117,7 +1122,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr21997-1.so" \
            "-shared" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { property-stack.S property-no-copy.S pr21997-1a.S } \
            {} \
            "pr21997-1.so" \
@@ -1125,7 +1130,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr21997-1a" \
            "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/pr21997-1.so" \
-           "$NOPIE_CFLAGS" \
+           "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
            { pr21997-1b.c } \
            {{error_output "pr21997-1a.err"}} \
            "pr21997-1a" \
@@ -1133,13 +1138,13 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr22064a.o" \
            "" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr22064a.S } \
        ] \
        [list \
            "Build pr22064.so" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=yes" \
            { pr22064b.c } \
            {} \
            "pr22064.so" \
@@ -1147,7 +1152,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr22393-3a.so" \
            "-shared -Wl,-z,separate-code,-z,max-page-size=0x1000" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=yes" \
            {pr22393-3a.c} \
            {{readelf -lW pr22393-3a.rd} \
             {readelf -lW pr22393-3b.rd}} \
@@ -1156,7 +1161,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr22393-3a-now.so" \
            "-shared -Wl,-z,separate-code,-z,now,-z,max-page-size=0x1000" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=yes" \
            {pr22393-3a.c} \
            {{readelf -lW pr22393-3a.rd} \
             {readelf -lW pr22393-3b.rd}} \
@@ -1165,7 +1170,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr22393-3" \
            "$NOPIE_LDFLAGS -Wl,-z,separate-code,-z,max-page-size=0x1000,--no-as-needed tmpdir/pr22393-3a.so" \
-           "$NOPIE_CFLAGS" \
+           "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
            {pr22393-3b.c} \
            {{readelf -lW pr22393-3a.rd} \
             {readelf -lW pr22393-3b.rd}} \
@@ -1174,7 +1179,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr22393-3 (PIE)" \
            "-pie -Wl,-z,separate-code,-z,max-page-size=0x1000,--no-as-needed tmpdir/pr22393-3a-now.so" \
-           "-fPIE" \
+           "-fPIE -Wa,-mx86-used-note=yes" \
            {pr22393-3b.c} \
            {{readelf -lW pr22393-3a.rd} \
             {readelf -lW pr22393-3b.rd}} \
@@ -1183,7 +1188,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr22393-3 (static)" \
            "-static -Wl,-z,separate-code,-z,max-page-size=0x1000" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pr22393-3a.c pr22393-3b.c} \
            {{readelf -lW pr22393-3a.rd} \
             {readelf -lW pr22393-3b.rd}} \
@@ -1192,7 +1197,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr22791-1.so" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=yes" \
            { pr22791-1a.c } \
            {} \
            "pr22791-1.so" \
@@ -1200,7 +1205,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr22791-1" \
            "-pie -Wl,--no-as-needed tmpdir/pr22791-1.so" \
-           "$NOPIE_CFLAGS" \
+           "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
            { pr22791-1b.s } \
            {{error_output "pr22791-1.err"}} \
            "pr22791-1" \
@@ -1208,13 +1213,13 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr22791-2a.o" \
            "" \
-           "$NOPIE_CFLAGS" \
+           "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
            { pr22791-2a.s } \
        ] \
        [list \
            "Build pr22791-2.so" \
            "-shared tmpdir/pr22791-2a.o" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=yes" \
            { pr22791-2b.c } \
            {{readelf -drW pr22791-2.rd}} \
            "pr22791-2.so" \
@@ -1222,7 +1227,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr22791-2" \
            "-pie -Wl,--no-as-needed tmpdir/pr22791-2.so" \
-           "$NOPIE_CFLAGS" \
+           "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
            { pr22791-2c.s } \
            {{readelf -drW pr22791-2.rd}} \
            "pr22791-2" \
@@ -1230,7 +1235,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr22842.so" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -Wa,-mx86-used-note=yes" \
            { pr22842a.c } \
            {} \
            "pr22842.so" \
@@ -1238,7 +1243,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr22842" \
            "-pie -Wl,--no-as-needed tmpdir/pr22842.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr22842b.S } \
            {{readelf -rW pr22842a.rd} \
             {readelf -rW pr22842b.rd}} \
@@ -1251,7 +1256,7 @@ if { [isnative] && [which $CC] != 0 } {
            [list \
                "Run pr22001-1b" \
                "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { pr22001-1c.c } \
                "pr22001-1b" \
                "pass.out" \
@@ -1260,7 +1265,7 @@ if { [isnative] && [which $CC] != 0 } {
            [list \
                "Run pr21997-1b" \
                "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/pr21997-1.so" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { pr21997-1c.c } \
                "pr21997-1b" \
                "pass.out" \
@@ -1272,7 +1277,7 @@ if { [isnative] && [which $CC] != 0 } {
            [list \
                "Build pr22001-1b" \
                "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
-               "$NOPIE_CFLAGS" \
+               "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
                { pr22001-1c.c } \
                {{error_output "pr22001-1b.err"}} \
                "pr22001-1b" \
@@ -1280,7 +1285,7 @@ if { [isnative] && [which $CC] != 0 } {
            [list \
                "Build pr21997-1b" \
                "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/pr21997-1.so" \
-               "$NOPIE_CFLAGS" \
+               "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
                { pr21997-1c.c } \
                {{error_output "pr21997-1b.err"}} \
                "pr21997-1b" \
@@ -1293,7 +1298,7 @@ if { [isnative] && [which $CC] != 0 } {
            "Run plt-main" \
            "-Wl,--no-as-needed tmpdir/plt-main1.o tmpdir/plt-main2.o \
             tmpdir/plt-main3.o tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { plt-main5.c } \
            "plt-main" \
            "plt-main.out" \
@@ -1302,7 +1307,7 @@ if { [isnative] && [which $CC] != 0 } {
            "Run plt-main with PIE" \
            "-Wl,--no-as-needed -pie tmpdir/plt-main1.o tmpdir/plt-main2.o \
             tmpdir/plt-main3.o tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { plt-main5.c } \
            "plt-main-pie" \
            "plt-main.out" \
@@ -1311,7 +1316,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Run copyreloc-main with PIE without -fPIE" \
            "-Wl,--as-needed -pie tmpdir/copyreloc-main.o tmpdir/copyreloc-lib.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            "copyreloc-main" \
            "copyreloc-main.out" \
@@ -1319,7 +1324,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Run pr17689 with PIE without -fPIE" \
            "-Wl,--no-as-needed -pie tmpdir/pr17689b.o tmpdir/pr17689.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            "pr17689" \
            "pr17689.out" \
@@ -1327,7 +1332,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Run pr17689 with PIE -z now without -fPIE" \
            "-Wl,--as-needed,-z,now -pie tmpdir/pr17689b.o tmpdir/pr17689.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            "pr17689now" \
            "pr17689.out" \
@@ -1335,7 +1340,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Run pr18900" \
            "-Wl,--no-as-needed tmpdir/pr18900.o tmpdir/pr18900.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            "pr18900" \
            "pr18900.out" \
@@ -1343,7 +1348,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Run pr19031" \
            "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/pr19031.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr19031b.S pr19031c.c } \
            "pr19031" \
            "pr19031.out" \
@@ -1352,7 +1357,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Run gotpcrel1" \
            "-Wl,--no-as-needed tmpdir/gotpcrel1d.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { gotpcrel1a.S gotpcrel1b.c gotpcrel1c.c } \
            "gotpcrel1" \
            "gotpcrel1.out" \
@@ -1360,112 +1365,112 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Run property 1" \
            "" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-no-copy.S} \
            "property-1" "pass.out" \
        ] \
        [list \
            "Run property 1 (PIE)" \
            "-pie" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-no-copy.S} \
            "property-1-pie" "pass.out" "-fPIE" \
        ] \
        [list \
            "Run property 1 (static)" \
            "-static" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-no-copy.S} \
            "property-1-static" "pass.out" \
        ] \
        [list \
            "Run property 2" \
            "" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-stack.S} \
            "property-2" "pass.out" \
        ] \
        [list \
            "Run property 2 (PIE)" \
            "-pie" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-stack.S} \
            "property-2-pie" "pass.out" "-fPIE" \
        ] \
        [list \
            "Run property 2 (static)" \
            "-static" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-stack.S} \
            "property-3-static" "pass.out" \
        ] \
        [list \
            "Run property 3" \
            "" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-stack.S property-x86-1.S} \
            "property-3" "pass.out" \
        ] \
        [list \
            "Run property 3 (PIE)" \
            "-pie" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-x86-1.S property-stack.S} \
            "property-3-pie" "pass.out" "-fPIE" \
        ] \
        [list \
            "Run property 3 (static)" \
            "-static" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {property-x86-1.S pass.c property-stack.S} \
            "property-3-static" "pass.out" \
        ] \
        [list \
            "Run property 4" \
            "" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
            "property-4" "pass.out" \
        ] \
        [list \
            "Run property 4 (PIE)" \
            "-pie" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
            "property-4-pie" "pass.out" "-fPIE" \
        ] \
        [list \
            "Run property 4 (static)" \
            "-static" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
            "property-4-static" "pass.out" \
        ] \
        [list \
            "Run property 5" \
            "-Wl,-z,stack-size=0x900000" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
            "property-5" "pass.out" \
        ] \
        [list \
            "Run property 5 (PIE)" \
            "-pie -Wl,-z,stack-size=0x900000" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
            "property-5-pie" "pass.out" "-fPIE" \
        ] \
        [list \
            "Run property 5 (static)" \
            "-static -Wl,-z,stack-size=0x900000" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
            "property-5-static" "pass.out" \
        ] \
        [list \
            "Run pr22001-1a (PIC 1)" \
            "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr22001-1b.c } \
            "pr22001-1a-pic-1" \
            "pass.out" \
@@ -1474,7 +1479,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Run pr22001-1a (PIC 2)" \
            "-pie -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr22001-1b.c } \
            "pr22001-1a-pic-2" \
            "pass.out" \
@@ -1483,7 +1488,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Run pr22001-1b (PIC 1)" \
            "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr22001-1c.c } \
            "pr22001-1b-pic-1" \
            "pass.out" \
@@ -1492,7 +1497,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Run pr22001-1b (PIC 2)" \
            "-pie -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr22001-1c.c } \
            "pr22001-1b-pic-2" \
            "pass.out" \
@@ -1501,7 +1506,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Run pr21997-1a (PIC 1)" \
            "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/pr21997-1.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr21997-1b.c } \
            "pr21997-1a-pic-1" \
            "pass.out" \
@@ -1510,7 +1515,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Run pr21997-1a (PIC 2)" \
            "-pie -Wl,--no-as-needed tmpdir/pr21997-1.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr21997-1b.c } \
            "pr21997-1a-pic-2" \
            "pass.out" \
@@ -1519,7 +1524,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Run pr21997-1b (PIC 1)" \
            "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/pr21997-1.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr21997-1c.c } \
            "pr21997-1b-pic-1" \
            "pass.out" \
@@ -1528,7 +1533,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Run pr21997-1b (PIC 2)" \
            "-pie -Wl,--no-as-needed tmpdir/pr21997-1.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr21997-1c.c } \
            "pr21997-1b-pic-2" \
            "pass.out" \
@@ -1537,7 +1542,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Run pr22064" \
            "-pie -Wl,--no-as-needed tmpdir/pr22064a.o tmpdir/pr22064.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { dummy.s } \
            "pr22064-pie" \
            "pass.out" \
@@ -1546,7 +1551,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Run pr22393-3" \
            "$NOPIE_LDFLAGS -Wl,-z,separate-code,-z,max-page-size=0x1000,--no-as-needed tmpdir/pr22393-3a.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pr22393-3b.c} \
            "pr22393-3" \
            "pass.out" \
@@ -1555,7 +1560,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Run pr22393-3 (PIE)" \
            "-pie -Wl,-z,separate-code,-z,max-page-size=0x1000,--no-as-needed tmpdir/pr22393-3a-now.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pr22393-3b.c} \
            "pr22393-3-pie" \
            "pass.out" \
@@ -1564,7 +1569,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Run pr22393-3 (static)" \
            "-static -Wl,-z,separate-code,-z,max-page-size=0x1000" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            {pr22393-3a.c pr22393-3b.c} \
            "pr22393-3-static" \
            "pass.out" \
@@ -1572,7 +1577,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Run pr22791-2" \
            "-pie -Wl,--no-as-needed tmpdir/pr22791-2.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr22791-2c.s } \
            "pr22791-2" \
            "pass.out" \
@@ -1581,7 +1586,7 @@ if { [isnative] && [which $CC] != 0 } {
        [list \
            "Build pr22842" \
            "-pie -Wl,--no-as-needed tmpdir/pr22842.so" \
-           "" \
+           "-Wa,-mx86-used-note=yes" \
            { pr22842b.S } \
            "pr22842" \
            "pass.out" \
@@ -1594,7 +1599,7 @@ if { [isnative] && [which $CC] != 0 } {
            [list \
                "Build libpr19784a.so" \
                "-shared -Wl,-Bsymbolic-functions" \
-               "-fPIC -O2 -g" \
+               "-fPIC -O2 -g -Wa,-mx86-used-note=yes" \
                { pr19784b.c pr19784c.c } \
                {} \
                "libpr19784a.so" \
@@ -1602,7 +1607,7 @@ if { [isnative] && [which $CC] != 0 } {
            [list \
                "Build libpr19784b.so" \
                "-shared -Wl,-Bsymbolic-functions" \
-               "-fPIC -O2 -g" \
+               "-fPIC -O2 -g -Wa,-mx86-used-note=yes" \
                { pr19784c.c pr19784b.c } \
                {} \
                "libpr19784b.so" \
@@ -1610,7 +1615,7 @@ if { [isnative] && [which $CC] != 0 } {
            [list \
                "Build pr19784a.o" \
                "" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { pr19784a.c } \
            ] \
        ]
@@ -1619,7 +1624,7 @@ if { [isnative] && [which $CC] != 0 } {
            [list \
                "Run pr19784a" \
                "-Wl,--no-as-needed tmpdir/pr19784a.o tmpdir/libpr19784a.so" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { dummy.s } \
                "pr19784a" \
                "pass.out" \
@@ -1627,7 +1632,7 @@ if { [isnative] && [which $CC] != 0 } {
            [list \
                "Run pr19784b" \
                "-Wl,--as-needed tmpdir/pr19784a.o tmpdir/libpr19784b.so" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { dummy.s } \
                "pr19784b" \
                "pass.out" \
@@ -1644,7 +1649,7 @@ if { [isnative] && [which $CC] != 0 } {
                "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
                 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z bndplt \
                 -z noseparate-code -z max-page-size=0x200000" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { plt-main5.c } \
                {{objdump {-drw} plt-main-bnd.dd}} \
                "plt-main-bnd" \
@@ -1654,7 +1659,7 @@ if { [isnative] && [which $CC] != 0 } {
                "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
                 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z bndplt -pie \
                 -z noseparate-code -z max-page-size=0x200000" \
-               "-fPIC" \
+               "-fPIC -Wa,-mx86-used-note=yes" \
                { plt-main5.c } \
                {{objdump {-drw} plt-main-bnd.dd}} \
                "plt-main-pie-bnd" \
@@ -1664,7 +1669,7 @@ if { [isnative] && [which $CC] != 0 } {
                "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
                 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z bndplt -z now \
                 -z noseparate-code -z max-page-size=0x200000" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { plt-main5.c } \
                {{readelf {-SW} plt-main-bnd-now.rd} {objdump {-drw} plt-main-bnd.dd}} \
                "plt-main-bnd-now" \
@@ -1674,7 +1679,7 @@ if { [isnative] && [which $CC] != 0 } {
                "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
                 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z bndplt -z now -pie \
                 -z noseparate-code -z max-page-size=0x200000" \
-               "-fPIC" \
+               "-fPIC -Wa,-mx86-used-note=yes" \
                { plt-main5.c } \
                {{readelf {-SW} plt-main-bnd-now.rd} {objdump {-drw} plt-main-bnd.dd}} \
                "plt-main-pie-bnd-now" \
@@ -1687,7 +1692,7 @@ if { [isnative] && [which $CC] != 0 } {
                "-Wl,--no-as-needed,-z,bndplt tmpdir/plt-main1.o \
                 tmpdir/plt-main2.o tmpdir/plt-main3.o \
                 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { plt-main5.c } \
                "plt-main-bnd" \
                "plt-main.out" \
@@ -1697,7 +1702,7 @@ if { [isnative] && [which $CC] != 0 } {
                "-Wl,--no-as-needed,-z,bndplt -pie tmpdir/plt-main1.o \
                 tmpdir/plt-main2.o tmpdir/plt-main3.o \
                 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { plt-main5.c } \
                "plt-main-pie-bnd" \
                "plt-main.out" \
@@ -1708,7 +1713,7 @@ if { [isnative] && [which $CC] != 0 } {
                "-Wl,--no-as-needed,-z,bndplt,-z,now tmpdir/plt-main1.o \
                 tmpdir/plt-main2.o tmpdir/plt-main3.o \
                 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { plt-main5.c } \
                "plt-main-bnd-now" \
                "plt-main.out" \
@@ -1718,7 +1723,7 @@ if { [isnative] && [which $CC] != 0 } {
                "-Wl,--no-as-needed,-z,bndplt,-z,now -pie tmpdir/plt-main1.o \
                 tmpdir/plt-main2.o tmpdir/plt-main3.o \
                 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { plt-main5.c } \
                "plt-main-pie-bnd-now" \
                "plt-main.out" \
@@ -1727,7 +1732,7 @@ if { [isnative] && [which $CC] != 0 } {
            [list \
                "Run pr20800" \
                "-Wl,-z,now -pie" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { pr20800a.S pr20800b.S } \
                "pr20800" \
                "pass.out" \
@@ -1738,7 +1743,7 @@ if { [isnative] && [which $CC] != 0 } {
                [list \
                    "Run pr21481a" \
                    "$NOPIE_LDFLAGS -Wl,-z,bndplt" \
-                   "" \
+                   "-Wa,-mx86-used-note=yes" \
                    { pr21481a.c pr21481b.S } \
                    "pr21481a" \
                    "pass.out" \
@@ -1747,7 +1752,7 @@ if { [isnative] && [which $CC] != 0 } {
                [list \
                    "Run pr21481b" \
                    "$NOPIE_LDFLAGS -Wl,-z,bndplt,-z,now" \
-                   "" \
+                   "-Wa,-mx86-used-note=yes" \
                    { pr21481a.c pr21481b.S } \
                    "pr21481b" \
                    "pass.out" \
@@ -1771,7 +1776,7 @@ if { [isnative] && [which $CC] != 0 } {
                "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
                 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z ibtplt \
                 -z noseparate-code -z max-page-size=0x200000" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { plt-main5.c } \
                $pltdump \
                "plt-main-ibt" \
@@ -1781,7 +1786,7 @@ if { [isnative] && [which $CC] != 0 } {
                "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
                 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z ibtplt -pie \
                 -z noseparate-code -z max-page-size=0x200000" \
-               "-fPIC" \
+               "-fPIC -Wa,-mx86-used-note=yes" \
                { plt-main5.c } \
                $pltdump \
                "plt-main-pie-ibt" \
@@ -1791,7 +1796,7 @@ if { [isnative] && [which $CC] != 0 } {
                "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
                 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z ibtplt -z now \
                 -z noseparate-code -z max-page-size=0x200000" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { plt-main5.c } \
                $pltsecdump \
                "plt-main-ibt-now" \
@@ -1801,7 +1806,7 @@ if { [isnative] && [which $CC] != 0 } {
                "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
                 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z ibtplt -z now -pie \
                 -z noseparate-code -z max-page-size=0x200000" \
-               "-fPIC" \
+               "-fPIC -Wa,-mx86-used-note=yes" \
                { plt-main5.c } \
                $pltsecdump \
                "plt-main-pie-ibt-now" \
@@ -1810,7 +1815,7 @@ if { [isnative] && [which $CC] != 0 } {
                "Build libibtplt-lib.so with -z ibtplt" \
                "-shared -z ibtplt \
                 -z noseparate-code -z max-page-size=0x200000" \
-               "-fPIC" \
+               "-fPIC -Wa,-mx86-used-note=yes" \
                { plt-main1.c plt-main2.c plt-main3.c plt-main4.c} \
                $pltdump \
                "libibtplt-lib.so" \
@@ -1819,7 +1824,7 @@ if { [isnative] && [which $CC] != 0 } {
                "Build libibtplt--now-lib.so with -z ibtplt -z now" \
                "-shared -z ibtplt -z now \
                 -z noseparate-code -z max-page-size=0x200000" \
-               "-fPIC" \
+               "-fPIC -Wa,-mx86-used-note=yes" \
                { plt-main1.c plt-main2.c plt-main3.c plt-main4.c} \
                $pltdump \
                "libibtplt-now-lib.so" \
@@ -1832,7 +1837,7 @@ if { [isnative] && [which $CC] != 0 } {
                "-Wl,--no-as-needed,-z,ibtplt tmpdir/plt-main1.o \
                 tmpdir/plt-main2.o tmpdir/plt-main3.o \
                 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { plt-main5.c } \
                "plt-main-ibt" \
                "plt-main.out" \
@@ -1842,7 +1847,7 @@ if { [isnative] && [which $CC] != 0 } {
                "-Wl,--no-as-needed,-z,ibtplt -pie tmpdir/plt-main1.o \
                 tmpdir/plt-main2.o tmpdir/plt-main3.o \
                 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { plt-main5.c } \
                "plt-main-pie-ibt" \
                "plt-main.out" \
@@ -1853,7 +1858,7 @@ if { [isnative] && [which $CC] != 0 } {
                "-Wl,--no-as-needed,-z,ibtplt,-z,now tmpdir/plt-main1.o \
                 tmpdir/plt-main2.o tmpdir/plt-main3.o \
                 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { plt-main5.c } \
                "plt-main-ibt-now" \
                "plt-main.out" \
@@ -1863,7 +1868,7 @@ if { [isnative] && [which $CC] != 0 } {
                "-Wl,--no-as-needed,-z,ibtplt,-z,now -pie tmpdir/plt-main1.o \
                 tmpdir/plt-main2.o tmpdir/plt-main3.o \
                 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { plt-main5.c } \
                "plt-main-pie-ibt-now" \
                "plt-main.out" \
@@ -1873,7 +1878,7 @@ if { [isnative] && [which $CC] != 0 } {
                "Run plt-main with libibtplt-lib.so -z ibtplt" \
                "-Wl,--no-as-needed,-z,ibtplt tmpdir/libibtplt-lib.so \
                 tmpdir/libplt-lib.so" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { plt-main5.c } \
                "plt-main-ibt-lib" \
                "plt-main.out" \
@@ -1882,7 +1887,7 @@ if { [isnative] && [which $CC] != 0 } {
                "Run plt-main with libibtplt-lib.so -z ibtplt -z now" \
                "-Wl,--no-as-needed,-z,ibtplt,-z,now \
                 tmpdir/libibtplt-now-lib.so tmpdir/libplt-lib.so" \
-               "" \
+               "-Wa,-mx86-used-note=yes" \
                { plt-main5.c } \
                "plt-main-ibt-now-lib" \
                "plt-main.out" \
@@ -1894,7 +1899,7 @@ if { [isnative] && [which $CC] != 0 } {
                [list \
                    "Run pr21481a" \
                    "$NOPIE_LDFLAGS -Wl,-z,ibtplt" \
-                   "" \
+                   "-Wa,-mx86-used-note=yes" \
                    { pr21481a.c pr21481b.S } \
                    "pr21481a" \
                    "pass.out" \
@@ -1903,7 +1908,7 @@ if { [isnative] && [which $CC] != 0 } {
                [list \
                    "Run pr21481b" \
                    "$NOPIE_LDFLAGS -Wl,-z,ibtplt,-z,now" \
-                   "" \
+                   "-Wa,-mx86-used-note=yes" \
                    { pr21481a.c pr21481b.S } \
                    "pr21481b" \
                    "pass.out" \
@@ -1921,6 +1926,7 @@ if { [isnative] && [which $CC] != 0 } {
 }
 
 if { ![istarget "x86_64-*-linux*"]} {
+    set ASFLAGS "$saved_ASFLAGS"
     return
 }
 
@@ -1939,7 +1945,7 @@ run_ld_link_tests [list \
        "Build pr21626.so" \
        "-shared -melf_x86_64" \
        "" \
-       "--64 -defsym __64_bit__=1" \
+       "--64 -defsym __64_bit__=1 -mx86-used-note=yes" \
        {property-x86-3.s} \
        "" \
        "pr21626.so" \
@@ -1948,7 +1954,7 @@ run_ld_link_tests [list \
        "Build pr21626" \
        "-melf_x86_64 tmpdir/pr21626.so" \
        "" \
-       "--64" \
+       "--64 -mx86-used-note=yes" \
        {start.s foo.s} \
        "" \
        "pr21626" \
@@ -1991,3 +1997,5 @@ run_dump_test "ibt-plt-3a-x32"
 run_dump_test "ibt-plt-3b-x32"
 run_dump_test "ibt-plt-3c-x32"
 run_dump_test "ibt-plt-3d-x32"
+
+set ASFLAGS "$saved_ASFLAGS"
This page took 0.148197 seconds and 4 git commands to generate.