PowerPC64 fails reloc-discard test
PowerPC64 fails here due to emitting a warning about discarded dynamic relocations. That's a good thing, since accidentally discarding dynamic relocations will likely result in a non-working binary. * testsuite/ld-elf/reloc-discard-warn.d: New. * testsuite/ld-elf/reloc-discard.d: Skip test on PowerPC64.
This commit is contained in:
parent
bb71536f28
commit
49ddb0fbda
|
@ -1,3 +1,8 @@
|
||||||
|
2018-07-23 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* testsuite/ld-elf/reloc-discard-warn.d: New.
|
||||||
|
* testsuite/ld-elf/reloc-discard.d: Skip test on PowerPC64.
|
||||||
|
|
||||||
2018-07-20 H.J. Lu <hongjiu.lu@intel.com>
|
2018-07-20 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* testsuite/ld-elf/reloc-discard.ld: Discard .rel.* and .rela.*
|
* testsuite/ld-elf/reloc-discard.ld: Discard .rel.* and .rela.*
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
#name: Discarded dynamic relocation section
|
||||||
|
#ld: -shared -T reloc-discard.ld
|
||||||
|
#readelf: -r --use-dynamic
|
||||||
|
#target: [check_shared_lib_support]
|
||||||
|
#noskip: powerpc64*-*-*
|
||||||
|
#source: reloc-discard.s
|
||||||
|
#warning: .*discarding dynamic section.*
|
||||||
|
# More targets should be using this variant of reloc-discard.d.
|
||||||
|
|
||||||
|
There are no dynamic relocations in this file\.
|
|
@ -2,9 +2,12 @@
|
||||||
#ld: -shared -T reloc-discard.ld
|
#ld: -shared -T reloc-discard.ld
|
||||||
#readelf: -r --use-dynamic
|
#readelf: -r --use-dynamic
|
||||||
#target: [check_shared_lib_support]
|
#target: [check_shared_lib_support]
|
||||||
|
#skip: powerpc64*-*-*
|
||||||
#source: reloc-discard.s
|
#source: reloc-discard.s
|
||||||
#xfail: nds32*-*-* tic6x-*-*
|
#xfail: nds32*-*-* tic6x-*-*
|
||||||
# Need to figure out how to pass `-fpic' for NDS32 or `-mpic -mpid=near'
|
# Need to figure out how to pass `-fpic' for NDS32 or `-mpic -mpid=near'
|
||||||
# for TI C6X targets to GAS for this test.
|
# for TI C6X targets to GAS for this test.
|
||||||
|
# PowerPC64 warns when discarding dynamic relocs, which is generally
|
||||||
|
# a good thing. See reloc-discard-warn.d test variant.
|
||||||
|
|
||||||
There are no dynamic relocations in this file\.
|
There are no dynamic relocations in this file\.
|
||||||
|
|
Loading…
Reference in New Issue