ld/testsuite: Enable ifunc tests on AArch64 big-endian.

ld/testsuite/ChangeLog:

2013-06-17  Will Newton  <will.newton@linaro.org>

	* ld-aarch64/ifunc-1-local.d: Enable test on aarch64_be.
	* ld-aarch64/ifunc-1.d: Likewise.
	* ld-aarch64/ifunc-10.d: Likewise.
	* ld-aarch64/ifunc-11.d: Likewise.
	* ld-aarch64/ifunc-12.d: Likewise.
	* ld-aarch64/ifunc-13.d: Likewise.
	* ld-aarch64/ifunc-14a.d: Likewise.
	* ld-aarch64/ifunc-14b.d: Likewise.
	* ld-aarch64/ifunc-14c.d: Likewise.
	* ld-aarch64/ifunc-14d.d: Likewise.
	* ld-aarch64/ifunc-14e.d: Likewise.
	* ld-aarch64/ifunc-14f.d: Likewise.
	* ld-aarch64/ifunc-15.d: Likewise.
	* ld-aarch64/ifunc-16.d: Likewise.
	* ld-aarch64/ifunc-17a.d: Likewise.
	* ld-aarch64/ifunc-17b.d: Likewise.
	* ld-aarch64/ifunc-18a.d: Likewise.
	* ld-aarch64/ifunc-18b.d: Likewise.
	* ld-aarch64/ifunc-19a.d: Likewise.
	* ld-aarch64/ifunc-19b.d: Likewise.
	* ld-aarch64/ifunc-2-local.d: Likewise.
	* ld-aarch64/ifunc-2.d: Likewise.
	* ld-aarch64/ifunc-20.d: Likewise.
	* ld-aarch64/ifunc-3a.d: Likewise.
	* ld-aarch64/ifunc-3b.d: Likewise.
	* ld-aarch64/ifunc-4.d: Likewise.
	* ld-aarch64/ifunc-4a.d: Likewise.
	* ld-aarch64/ifunc-5a-local.d: Likewise.
	* ld-aarch64/ifunc-5a.d: Likewise.
	* ld-aarch64/ifunc-5b-local.d: Likewise.
	* ld-aarch64/ifunc-5b.d: Likewise.
	* ld-aarch64/ifunc-5r-local.d: Likewise.
	* ld-aarch64/ifunc-6a.d: Likewise.
	* ld-aarch64/ifunc-6b.d: Likewise.
	* ld-aarch64/ifunc-7a.d: Likewise.
	* ld-aarch64/ifunc-7b.d: Likewise.
	* ld-aarch64/ifunc-8.d: Likewise.
	* ld-aarch64/ifunc-9.d: Likewise.
	* ld-ifunc/ifunc.exp: Likewise.
This commit is contained in:
Will Newton
2013-06-17 09:08:52 +00:00
parent 2d50327282
commit 6c74eac210
40 changed files with 81 additions and 39 deletions

View File

@ -1,3 +1,45 @@
2013-06-17 Will Newton <will.newton@linaro.org>
* ld-aarch64/ifunc-1-local.d: Enable test on aarch64_be.
* ld-aarch64/ifunc-1.d: Likewise.
* ld-aarch64/ifunc-10.d: Likewise.
* ld-aarch64/ifunc-11.d: Likewise.
* ld-aarch64/ifunc-12.d: Likewise.
* ld-aarch64/ifunc-13.d: Likewise.
* ld-aarch64/ifunc-14a.d: Likewise.
* ld-aarch64/ifunc-14b.d: Likewise.
* ld-aarch64/ifunc-14c.d: Likewise.
* ld-aarch64/ifunc-14d.d: Likewise.
* ld-aarch64/ifunc-14e.d: Likewise.
* ld-aarch64/ifunc-14f.d: Likewise.
* ld-aarch64/ifunc-15.d: Likewise.
* ld-aarch64/ifunc-16.d: Likewise.
* ld-aarch64/ifunc-17a.d: Likewise.
* ld-aarch64/ifunc-17b.d: Likewise.
* ld-aarch64/ifunc-18a.d: Likewise.
* ld-aarch64/ifunc-18b.d: Likewise.
* ld-aarch64/ifunc-19a.d: Likewise.
* ld-aarch64/ifunc-19b.d: Likewise.
* ld-aarch64/ifunc-2-local.d: Likewise.
* ld-aarch64/ifunc-2.d: Likewise.
* ld-aarch64/ifunc-20.d: Likewise.
* ld-aarch64/ifunc-3a.d: Likewise.
* ld-aarch64/ifunc-3b.d: Likewise.
* ld-aarch64/ifunc-4.d: Likewise.
* ld-aarch64/ifunc-4a.d: Likewise.
* ld-aarch64/ifunc-5a-local.d: Likewise.
* ld-aarch64/ifunc-5a.d: Likewise.
* ld-aarch64/ifunc-5b-local.d: Likewise.
* ld-aarch64/ifunc-5b.d: Likewise.
* ld-aarch64/ifunc-5r-local.d: Likewise.
* ld-aarch64/ifunc-6a.d: Likewise.
* ld-aarch64/ifunc-6b.d: Likewise.
* ld-aarch64/ifunc-7a.d: Likewise.
* ld-aarch64/ifunc-7b.d: Likewise.
* ld-aarch64/ifunc-8.d: Likewise.
* ld-aarch64/ifunc-9.d: Likewise.
* ld-ifunc/ifunc.exp: Likewise.
2013-06-14 Yufeng Zhang <yufeng.zhang@arm.com> 2013-06-14 Yufeng Zhang <yufeng.zhang@arm.com>
* ld-aarch64/aarch64-elf.exp: Add 'ifunc-7c'. * ld-aarch64/aarch64-elf.exp: Add 'ifunc-7c'.

View File

@ -1,6 +1,6 @@
#ld: -shared #ld: -shared
#objdump: -dw #objdump: -dw
#target: aarch64-*-* #target: aarch64*-*-*
#... #...
[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x[0-9a-f]+@plt> [ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x[0-9a-f]+@plt>

View File

@ -1,6 +1,6 @@
#ld: -shared #ld: -shared
#objdump: -dw #objdump: -dw
#target: aarch64-*-* #target: aarch64*-*-*
#... #...
[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x[0-9a-f]+@plt> [ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x[0-9a-f]+@plt>

View File

@ -1,5 +1,5 @@
#ld: -e bar --gc-sections #ld: -e bar --gc-sections
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
There are no relocations in this file. There are no relocations in this file.

View File

@ -1,5 +1,5 @@
#ld: -e bar --gc-sections #ld: -e bar --gc-sections
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
There are no relocations in this file. There are no relocations in this file.

View File

@ -1,5 +1,5 @@
#ld: -shared -e bar --gc-sections #ld: -shared -e bar --gc-sections
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
There are no relocations in this file. There are no relocations in this file.

View File

@ -2,7 +2,7 @@
#source: ifunc-13b.s #source: ifunc-13b.s
#ld: -shared -z nocombreloc #ld: -shared -z nocombreloc
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
Relocation section '.rela.ifunc' at offset 0x[0-9a-f]+ contains 1 entries: Relocation section '.rela.ifunc' at offset 0x[0-9a-f]+ contains 1 entries:
[ ]+Offset[ ]+Info[ ]+Type[ ]+.* [ ]+Offset[ ]+Info[ ]+Type[ ]+.*

View File

@ -2,7 +2,7 @@
#source: ifunc-14b.s #source: ifunc-14b.s
#ld: -shared -z nocombreloc #ld: -shared -z nocombreloc
#readelf: -d #readelf: -d
#target: aarch64-*-* #target: aarch64*-*-*
#failif #failif
#... #...

View File

@ -2,7 +2,7 @@
#source: ifunc-14a.s #source: ifunc-14a.s
#ld: -shared -z nocombreloc #ld: -shared -z nocombreloc
#readelf: -d #readelf: -d
#target: aarch64-*-* #target: aarch64*-*-*
#failif #failif
#... #...

View File

@ -2,7 +2,7 @@
#source: ifunc-14b.s #source: ifunc-14b.s
#ld: -shared -z nocombreloc #ld: -shared -z nocombreloc
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
#failif #failif
#... #...

View File

@ -2,7 +2,7 @@
#source: ifunc-14a.s #source: ifunc-14a.s
#ld: -shared -z nocombreloc #ld: -shared -z nocombreloc
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
#failif #failif
#... #...

View File

@ -3,7 +3,7 @@
#source: ifunc-14b.s #source: ifunc-14b.s
#ld: -shared -z nocombreloc #ld: -shared -z nocombreloc
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
#failif #failif
#... #...

View File

@ -3,7 +3,7 @@
#source: ifunc-14c.s #source: ifunc-14c.s
#ld: -shared -z nocombreloc #ld: -shared -z nocombreloc
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
#failif #failif
#... #...

View File

@ -1,7 +1,7 @@
#source: ifunc-15.s #source: ifunc-15.s
#ld: -shared -z nocombreloc #ld: -shared -z nocombreloc
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
Relocation section '.rela.got' at offset 0x[0-9a-f]+ contains 1 entries: Relocation section '.rela.got' at offset 0x[0-9a-f]+ contains 1 entries:
[ ]+Offset[ ]+Info[ ]+Type[ ]+.* [ ]+Offset[ ]+Info[ ]+Type[ ]+.*

View File

@ -1,7 +1,7 @@
#source: ifunc-16.s #source: ifunc-16.s
#ld: -shared #ld: -shared
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
Relocation section '.rela.plt' at .* Relocation section '.rela.plt' at .*
[ ]+Offset[ ]+Info[ ]+Type[ ]+.* [ ]+Offset[ ]+Info[ ]+Type[ ]+.*

View File

@ -2,7 +2,7 @@
#source: ifunc-17b.s #source: ifunc-17b.s
#ld: -static #ld: -static
#readelf: -s --wide #readelf: -s --wide
#target: aarch64-*-* #target: aarch64*-*-*
#... #...
+[0-9]+: +[0-9a-f]+ +4 +OBJECT +GLOBAL +DEFAULT +[1-9] foo +[0-9]+: +[0-9a-f]+ +4 +OBJECT +GLOBAL +DEFAULT +[1-9] foo

View File

@ -2,7 +2,7 @@
#source: ifunc-17a.s #source: ifunc-17a.s
#ld: -static #ld: -static
#readelf: -s --wide #readelf: -s --wide
#target: aarch64-*-* #target: aarch64*-*-*
#... #...
+[0-9]+: +[0-9a-f]+ +4 +OBJECT +GLOBAL +DEFAULT +[1-9] foo +[0-9]+: +[0-9a-f]+ +4 +OBJECT +GLOBAL +DEFAULT +[1-9] foo

View File

@ -2,7 +2,7 @@
#source: ifunc-18b.s #source: ifunc-18b.s
#ld: -shared -z nocombreloc #ld: -shared -z nocombreloc
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
Relocation section '.rela.ifunc' at .* Relocation section '.rela.ifunc' at .*
[ ]+Offset[ ]+Info[ ]+Type[ ]+.* [ ]+Offset[ ]+Info[ ]+Type[ ]+.*

View File

@ -2,7 +2,7 @@
#source: ifunc-18a.s #source: ifunc-18a.s
#ld: -shared -z nocombreloc #ld: -shared -z nocombreloc
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
Relocation section '.rela.ifunc' at .* Relocation section '.rela.ifunc' at .*
[ ]+Offset[ ]+Info[ ]+Type[ ]+.* [ ]+Offset[ ]+Info[ ]+Type[ ]+.*

View File

@ -2,7 +2,7 @@
#source: ifunc-19b.s #source: ifunc-19b.s
#ld: -shared -z nocombreloc #ld: -shared -z nocombreloc
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
Relocation section '.rela.ifunc' at .* Relocation section '.rela.ifunc' at .*
[ ]+Offset[ ]+Info[ ]+Type[ ]+.* [ ]+Offset[ ]+Info[ ]+Type[ ]+.*

View File

@ -2,7 +2,7 @@
#source: ifunc-19a.s #source: ifunc-19a.s
#ld: -shared -z nocombreloc #ld: -shared -z nocombreloc
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
Relocation section '.rela.ifunc' at .* Relocation section '.rela.ifunc' at .*
[ ]+Offset[ ]+Info[ ]+Type[ ]+.* [ ]+Offset[ ]+Info[ ]+Type[ ]+.*

View File

@ -1,6 +1,6 @@
#ld: -shared #ld: -shared
#objdump: -dw #objdump: -dw
#target: aarch64-*-* #target: aarch64*-*-*
#... #...
[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x[0-9a-f]+@plt> [ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x[0-9a-f]+@plt>

View File

@ -1,6 +1,6 @@
#ld: -shared #ld: -shared
#objdump: -dw #objdump: -dw
#target: aarch64-*-* #target: aarch64*-*-*
#... #...
[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x[0-9a-f]+@plt> [ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x[0-9a-f]+@plt>

View File

@ -1,7 +1,7 @@
#source: ifunc-20.s #source: ifunc-20.s
#ld: -shared -z nocombreloc #ld: -shared -z nocombreloc
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
Relocation section '.rela.ifunc' at offset 0x[0-9a-f]+ contains 1 entries: Relocation section '.rela.ifunc' at offset 0x[0-9a-f]+ contains 1 entries:
[ ]+Offset[ ]+Info[ ]+Type[ ]+.* [ ]+Offset[ ]+Info[ ]+Type[ ]+.*

View File

@ -1,7 +1,7 @@
#source: ifunc-3.s #source: ifunc-3.s
#ld: -shared #ld: -shared
#objdump: -dw #objdump: -dw
#target: aarch64-*-* #target: aarch64*-*-*
#... #...
[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x[0-9a-f]+@plt> [ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x[0-9a-f]+@plt>

View File

@ -1,7 +1,7 @@
#source: ifunc-3.s #source: ifunc-3.s
#ld: -shared #ld: -shared
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
#... #...
[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_[_0-9A-Z]+_IRELATIVE[ ]*[0-9a-f]* [0-9a-f]+[ ]+[0-9a-f]+[ ]+R_[_0-9A-Z]+_IRELATIVE[ ]*[0-9a-f]*

View File

@ -1,6 +1,6 @@
#ld: #ld:
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
#... #...
[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_[_0-9A-Z]+_IRELATIVE[ ]*[0-9a-f]* [0-9a-f]+[ ]+[0-9a-f]+[ ]+R_[_0-9A-Z]+_IRELATIVE[ ]*[0-9a-f]*

View File

@ -1,6 +1,6 @@
#ld: -s #ld: -s
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
#source: ifunc-4.s #source: ifunc-4.s
#... #...

View File

@ -1,7 +1,7 @@
#source: ifunc-5-local.s #source: ifunc-5-local.s
#ld: #ld:
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
Relocation section '.rela.plt' at .* Relocation section '.rela.plt' at .*
[ ]+Offset[ ]+Info[ ]+Type[ ]+.* [ ]+Offset[ ]+Info[ ]+Type[ ]+.*

View File

@ -1,7 +1,7 @@
#source: ifunc-5.s #source: ifunc-5.s
#ld: #ld:
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
Relocation section '.rela.plt' at .* Relocation section '.rela.plt' at .*
[ ]+Offset[ ]+Info[ ]+Type[ ]+.* [ ]+Offset[ ]+Info[ ]+Type[ ]+.*

View File

@ -1,7 +1,7 @@
#source: ifunc-5-local.s #source: ifunc-5-local.s
#ld: -shared -z nocombreloc #ld: -shared -z nocombreloc
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
Relocation section '.rela.plt' at .* Relocation section '.rela.plt' at .*
[ ]+Offset[ ]+Info[ ]+Type[ ]+.* [ ]+Offset[ ]+Info[ ]+Type[ ]+.*

View File

@ -1,7 +1,7 @@
#source: ifunc-5.s #source: ifunc-5.s
#ld: -shared -z nocombreloc #ld: -shared -z nocombreloc
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
Relocation section '.rela.got' at .* Relocation section '.rela.got' at .*
[ ]+Offset[ ]+Info[ ]+Type[ ]+.* [ ]+Offset[ ]+Info[ ]+Type[ ]+.*

View File

@ -1,7 +1,7 @@
#source: ifunc-5-local.s #source: ifunc-5-local.s
#ld: -r #ld: -r
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
Relocation section '.rela.text' at .* Relocation section '.rela.text' at .*
[ ]+Offset[ ]+Info[ ]+Type[ ]+.* [ ]+Offset[ ]+Info[ ]+Type[ ]+.*

View File

@ -1,7 +1,7 @@
#source: ifunc-6.s #source: ifunc-6.s
#ld: #ld:
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
Relocation section '.rela.plt' at .* Relocation section '.rela.plt' at .*
[ ]+Offset[ ]+Info[ ]+Type[ ]+.* [ ]+Offset[ ]+Info[ ]+Type[ ]+.*

View File

@ -1,7 +1,7 @@
#source: ifunc-6.s #source: ifunc-6.s
#ld: -shared -z nocombreloc #ld: -shared -z nocombreloc
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
Relocation section '.rela.got' at .* Relocation section '.rela.got' at .*
[ ]+Offset[ ]+Info[ ]+Type[ ]+.* [ ]+Offset[ ]+Info[ ]+Type[ ]+.*

View File

@ -1,7 +1,7 @@
#source: ifunc-7.s #source: ifunc-7.s
#ld: #ld:
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
Relocation section '.rela.plt' at .* Relocation section '.rela.plt' at .*
[ ]+Offset[ ]+Info[ ]+Type[ ]+.* [ ]+Offset[ ]+Info[ ]+Type[ ]+.*

View File

@ -1,7 +1,7 @@
#source: ifunc-7.s #source: ifunc-7.s
#ld: -shared #ld: -shared
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
Relocation section '.rela.plt' at .* Relocation section '.rela.plt' at .*
[ ]+Offset[ ]+Info[ ]+Type[ ]+.* [ ]+Offset[ ]+Info[ ]+Type[ ]+.*

View File

@ -2,7 +2,7 @@
#source: ifunc-8b.s #source: ifunc-8b.s
#ld: #ld:
#readelf: -r --wide #readelf: -r --wide
#target: aarch64-*-* #target: aarch64*-*-*
Relocation section '.rela.plt' at .* Relocation section '.rela.plt' at .*
[ ]+Offset[ ]+Info[ ]+Type[ ]+.* [ ]+Offset[ ]+Info[ ]+Type[ ]+.*

View File

@ -1,3 +1,3 @@
#ld: --export-dynamic #ld: --export-dynamic
#error: .*dynamic STT_GNU_IFUNC symbol `foo' with pointer equality in `.*.o' can not be used when making an executable; recompile with -fPIE and relink with -pie #error: .*dynamic STT_GNU_IFUNC symbol `foo' with pointer equality in `.*.o' can not be used when making an executable; recompile with -fPIE and relink with -pie
#target: aarch64-*-* #target: aarch64*-*-*

View File

@ -28,7 +28,7 @@
if {!(([istarget "i?86-*-*"] if {!(([istarget "i?86-*-*"]
|| [istarget "x86_64-*-*"] || [istarget "x86_64-*-*"]
|| [istarget "powerpc*-*-*"] || [istarget "powerpc*-*-*"]
|| [istarget "aarch64-*-*"] || [istarget "aarch64*-*-*"]
|| [istarget "sparc*-*-*"]) || [istarget "sparc*-*-*"])
&& ([istarget "*-*-elf*"] && ([istarget "*-*-elf*"]
|| [istarget "*-*-nacl*"] || [istarget "*-*-nacl*"]