ld: Pass -z separate-code to ld for property-x86-4a tests
Pass -z separate-code to ld for property-x86-4a tests to generate the expected .note.gnu.property section. Also run i386 tests for x86_64-*-elf* targets. * testsuite/ld-i386/i386.exp: Also run for x86_64-*-elf* targets. * testsuite/ld-i386/property-x86-4a.d: Pass -z separate-code to ld. * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise. * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
This commit is contained in:
parent
e9d644e8fb
commit
4bb3c591b2
|
@ -1,3 +1,11 @@
|
||||||
|
2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* testsuite/ld-i386/i386.exp: Also run for x86_64-*-elf* targets.
|
||||||
|
* testsuite/ld-i386/property-x86-4a.d: Pass -z separate-code to
|
||||||
|
ld.
|
||||||
|
* testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
|
||||||
|
* testsuite/ld-x86-64/property-x86-4a.d: Likewise.
|
||||||
|
|
||||||
2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
|
2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* testsuite/ld-elf/elf.exp (ASFLAGS): Save, append
|
* testsuite/ld-elf/elf.exp (ASFLAGS): Save, append
|
||||||
|
|
|
@ -109,6 +109,7 @@ if { !([istarget "i?86-*-elf*"]
|
||||||
|| [istarget "i?86-*-linux*"]
|
|| [istarget "i?86-*-linux*"]
|
||||||
|| [istarget "i?86-*-gnu*"]
|
|| [istarget "i?86-*-gnu*"]
|
||||||
|| [istarget "i?86-*-nacl*"]
|
|| [istarget "i?86-*-nacl*"]
|
||||||
|
|| [istarget "x86_64-*-elf*"]
|
||||||
|| [istarget "x86_64-*-nacl*"]
|
|| [istarget "x86_64-*-nacl*"]
|
||||||
|| [istarget "x86_64-*-linux*"]
|
|| [istarget "x86_64-*-linux*"]
|
||||||
|| [istarget "amd64-*-linux*"]) } {
|
|| [istarget "amd64-*-linux*"]) } {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#source: property-x86-4a.s
|
#source: property-x86-4a.s
|
||||||
#source: property-x86-4b.s
|
#source: property-x86-4b.s
|
||||||
#as: --32 -mx86-used-note=yes
|
#as: --32 -mx86-used-note=yes
|
||||||
#ld: -m elf_i386 --gc-sections --entry=main
|
#ld: -m elf_i386 --gc-sections --entry=main -z separate-code
|
||||||
#readelf: -n
|
#readelf: -n
|
||||||
|
|
||||||
Displaying notes found in: .note.gnu.property
|
Displaying notes found in: .note.gnu.property
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#source: property-x86-4a.s
|
#source: property-x86-4a.s
|
||||||
#source: property-x86-4b.s
|
#source: property-x86-4b.s
|
||||||
#as: --x32 -mx86-used-note=yes
|
#as: --x32 -mx86-used-note=yes
|
||||||
#ld: -m elf32_x86_64 --gc-sections --entry=main
|
#ld: -m elf32_x86_64 --gc-sections --entry=main -z separate-code
|
||||||
#readelf: -n
|
#readelf: -n
|
||||||
|
|
||||||
Displaying notes found in: .note.gnu.property
|
Displaying notes found in: .note.gnu.property
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#source: property-x86-4a.s
|
#source: property-x86-4a.s
|
||||||
#source: property-x86-4b.s
|
#source: property-x86-4b.s
|
||||||
#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
|
#as: --64 -defsym __64_bit__=1 -mx86-used-note=yes
|
||||||
#ld: -m elf_x86_64 --gc-sections --entry=main
|
#ld: -m elf_x86_64 --gc-sections --entry=main -z separate-code
|
||||||
#readelf: -n
|
#readelf: -n
|
||||||
|
|
||||||
Displaying notes found in: .note.gnu.property
|
Displaying notes found in: .note.gnu.property
|
||||||
|
|
Loading…
Reference in New Issue