diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2018-08-31 04:35:46 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2018-08-31 04:35:57 -0700 |
commit | 6c0d3bdec7f1728a064a916145c6d79058e6e3d7 (patch) | |
tree | 4907a7e0387a966757f04f3b6fad8afeef165faf /gas | |
parent | b4a3a7b44c98a9f78a27bd34d0d98741a0446e23 (diff) | |
download | gdb-6c0d3bdec7f1728a064a916145c6d79058e6e3d7.zip gdb-6c0d3bdec7f1728a064a916145c6d79058e6e3d7.tar.gz gdb-6c0d3bdec7f1728a064a916145c6d79058e6e3d7.tar.bz2 |
x86: Add explicit -mx86-used-note=[yes|no] to tests
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.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 21 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/bss.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/divide.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/ilp32/quad.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/ilp32/reloc64.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/ilp32/x86-64-size-1.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/ilp32/x86-64-size-3.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/ilp32/x86-64-size-5.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/ilp32/x86-64-unwind.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/property-1.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/relax.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/reloc64.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/size-1.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/size-3.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-property-1.d | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-size-1.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-size-3.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-size-5.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-unwind.d | 1 |
19 files changed, 39 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 2c0ac58..582bbd2 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,26 @@ 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]. * configure.ac: Add --enable-x86-used-note. Define DEFAULT_X86_USED_NOTE. diff --git a/gas/testsuite/gas/i386/bss.d b/gas/testsuite/gas/i386/bss.d index ba74930..cf52814 100644 --- a/gas/testsuite/gas/i386/bss.d +++ b/gas/testsuite/gas/i386/bss.d @@ -1,3 +1,4 @@ +#as: -mx86-used-note=no #objdump: -s #name: i386 .bss diff --git a/gas/testsuite/gas/i386/divide.d b/gas/testsuite/gas/i386/divide.d index 1087426..ba59709 100644 --- a/gas/testsuite/gas/i386/divide.d +++ b/gas/testsuite/gas/i386/divide.d @@ -7,3 +7,4 @@ Contents of section .* 0000 01000000 02000000 03000000 04000000 .* 0010 05000000 .* +#pass diff --git a/gas/testsuite/gas/i386/ilp32/quad.d b/gas/testsuite/gas/i386/ilp32/quad.d index f337bae..94f7b5a 100644 --- a/gas/testsuite/gas/i386/ilp32/quad.d +++ b/gas/testsuite/gas/i386/ilp32/quad.d @@ -1,3 +1,4 @@ +#as: -mx86-used-note=no #objdump: -sr #name: x86-64 (ILP32) quad diff --git a/gas/testsuite/gas/i386/ilp32/reloc64.d b/gas/testsuite/gas/i386/ilp32/reloc64.d index f6bc628..5865ab0 100644 --- a/gas/testsuite/gas/i386/ilp32/reloc64.d +++ b/gas/testsuite/gas/i386/ilp32/reloc64.d @@ -1,3 +1,4 @@ +#as: -mx86-used-note=no #objdump: -Drw #name: x86-64 (ILP32) relocs diff --git a/gas/testsuite/gas/i386/ilp32/x86-64-size-1.d b/gas/testsuite/gas/i386/ilp32/x86-64-size-1.d index 0b956d9..874debb 100644 --- a/gas/testsuite/gas/i386/ilp32/x86-64-size-1.d +++ b/gas/testsuite/gas/i386/ilp32/x86-64-size-1.d @@ -1,3 +1,4 @@ +#as: -mx86-used-note=no #name: x32 size 1 #source: ../size-1.s #readelf: -r diff --git a/gas/testsuite/gas/i386/ilp32/x86-64-size-3.d b/gas/testsuite/gas/i386/ilp32/x86-64-size-3.d index a1169d6..7008e5a 100644 --- a/gas/testsuite/gas/i386/ilp32/x86-64-size-3.d +++ b/gas/testsuite/gas/i386/ilp32/x86-64-size-3.d @@ -1,3 +1,4 @@ +#as: -mx86-used-note=no #name: x32 size 3 #source: ../size-3.s #readelf: -r diff --git a/gas/testsuite/gas/i386/ilp32/x86-64-size-5.d b/gas/testsuite/gas/i386/ilp32/x86-64-size-5.d index f4eb0d6..c47d1df 100644 --- a/gas/testsuite/gas/i386/ilp32/x86-64-size-5.d +++ b/gas/testsuite/gas/i386/ilp32/x86-64-size-5.d @@ -1,3 +1,4 @@ +#as: -mx86-used-note=no #name: x32 size 5 #source: ../x86-64-size-5.s #readelf: -r diff --git a/gas/testsuite/gas/i386/ilp32/x86-64-unwind.d b/gas/testsuite/gas/i386/ilp32/x86-64-unwind.d index 5dc74d6c..8fa6c37 100644 --- a/gas/testsuite/gas/i386/ilp32/x86-64-unwind.d +++ b/gas/testsuite/gas/i386/ilp32/x86-64-unwind.d @@ -1,3 +1,4 @@ +#as: -mx86-used-note=no #source: ../x86-64-unwind.s #readelf: -S #name: x86-64 (ILP32) unwind diff --git a/gas/testsuite/gas/i386/property-1.d b/gas/testsuite/gas/i386/property-1.d index 3a4530b..5a9bec7 100644 --- a/gas/testsuite/gas/i386/property-1.d +++ b/gas/testsuite/gas/i386/property-1.d @@ -1,4 +1,5 @@ #name: i386 property 1 +#as: -mx86-used-note=no #readelf: -n Displaying notes found in: .note.gnu.property diff --git a/gas/testsuite/gas/i386/relax.d b/gas/testsuite/gas/i386/relax.d index 7eb5cec..83b7d89 100644 --- a/gas/testsuite/gas/i386/relax.d +++ b/gas/testsuite/gas/i386/relax.d @@ -1,3 +1,4 @@ +#as: -mx86-used-note=no #name: i386 relax #objdump: -s diff --git a/gas/testsuite/gas/i386/reloc64.d b/gas/testsuite/gas/i386/reloc64.d index 4cf884d..59e02b4 100644 --- a/gas/testsuite/gas/i386/reloc64.d +++ b/gas/testsuite/gas/i386/reloc64.d @@ -1,3 +1,4 @@ +#as: -mx86-used-note=no #objdump: -Drw #name: x86-64 relocs diff --git a/gas/testsuite/gas/i386/size-1.d b/gas/testsuite/gas/i386/size-1.d index ba45fa7..3eb5a7f 100644 --- a/gas/testsuite/gas/i386/size-1.d +++ b/gas/testsuite/gas/i386/size-1.d @@ -1,3 +1,4 @@ +#as: -mx86-used-note=no #name: i386 size 1 #readelf: -r diff --git a/gas/testsuite/gas/i386/size-3.d b/gas/testsuite/gas/i386/size-3.d index 042bfe7..d79db27 100644 --- a/gas/testsuite/gas/i386/size-3.d +++ b/gas/testsuite/gas/i386/size-3.d @@ -1,3 +1,4 @@ +#as: -mx86-used-note=no #name: i386 size 3 #readelf: -r diff --git a/gas/testsuite/gas/i386/x86-64-property-1.d b/gas/testsuite/gas/i386/x86-64-property-1.d index 5fc1c85..966793e 100644 --- a/gas/testsuite/gas/i386/x86-64-property-1.d +++ b/gas/testsuite/gas/i386/x86-64-property-1.d @@ -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 diff --git a/gas/testsuite/gas/i386/x86-64-size-1.d b/gas/testsuite/gas/i386/x86-64-size-1.d index d615bd3..0eb3e50 100644 --- a/gas/testsuite/gas/i386/x86-64-size-1.d +++ b/gas/testsuite/gas/i386/x86-64-size-1.d @@ -1,3 +1,4 @@ +#as: -mx86-used-note=no #name: x86-64 size 1 #source: size-1.s #readelf: -r diff --git a/gas/testsuite/gas/i386/x86-64-size-3.d b/gas/testsuite/gas/i386/x86-64-size-3.d index c28d695..16e0936 100644 --- a/gas/testsuite/gas/i386/x86-64-size-3.d +++ b/gas/testsuite/gas/i386/x86-64-size-3.d @@ -1,3 +1,4 @@ +#as: -mx86-used-note=no #name: x86-64 size 3 #source: size-3.s #readelf: -r diff --git a/gas/testsuite/gas/i386/x86-64-size-5.d b/gas/testsuite/gas/i386/x86-64-size-5.d index 791fb56..c1e7fcf 100644 --- a/gas/testsuite/gas/i386/x86-64-size-5.d +++ b/gas/testsuite/gas/i386/x86-64-size-5.d @@ -1,3 +1,4 @@ +#as: -mx86-used-note=no #name: x86-64 size 5 #readelf: -r diff --git a/gas/testsuite/gas/i386/x86-64-unwind.d b/gas/testsuite/gas/i386/x86-64-unwind.d index 89f1a65..93b84a8 100644 --- a/gas/testsuite/gas/i386/x86-64-unwind.d +++ b/gas/testsuite/gas/i386/x86-64-unwind.d @@ -1,3 +1,4 @@ +#as: -mx86-used-note=no #readelf: -S #name: x86-64 unwind |