diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2016-03-02 11:35:03 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2016-03-02 11:36:00 -0800 |
commit | 7494161b47210a94b532a0f98d75e8cb084c21f9 (patch) | |
tree | 1d942496b1b269963b6bfeb32788873d8cf4d421 /ld | |
parent | fdbd04a8adef3a48eeac7702e9243c7c31e47256 (diff) | |
download | binutils-gdb-7494161b47210a94b532a0f98d75e8cb084c21f9.tar.gz |
Xfail mix_pic_and_non_pic on arm and aarch64
* testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): Add xfails.
Xfail mix_pic_and_non_pic on "arm*-*-*" "aarch64*-*-*".
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/shared.exp | 10 |
2 files changed, 12 insertions, 3 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index e27d5f01131..c8399717efd 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,10 @@ 2016-03-02 H.J. Lu <hongjiu.lu@intel.com> + * testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): Add xfails. + Xfail mix_pic_and_non_pic on "arm*-*-*" "aarch64*-*-*". + +2016-03-02 H.J. Lu <hongjiu.lu@intel.com> + PR ld/19739 * emultempl/mmo.em (mmo_place_orphan): Don't merge flags of other input sections for relocatable link. diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp index e615f55b951..678ab1bb31f 100644 --- a/ld/testsuite/ld-elf/shared.exp +++ b/ld/testsuite/ld-elf/shared.exp @@ -583,7 +583,7 @@ if { [istarget *-*-linux*] ] } -proc mix_pic_and_non_pic {cflags ldflags} { +proc mix_pic_and_non_pic {xfails cflags ldflags} { set testname "Mixing PIC and non-PIC" if { ![ string match "" $cflags$ldflags] } { set testname "$testname ($cflags $ldflags)" @@ -632,6 +632,10 @@ proc mix_pic_and_non_pic {cflags ldflags} { exec cp tmpdir/libpr19719a.so tmpdir/libpr19719.so + foreach targ $xfails { + setup_xfail $targ + } + set exec_output [run_host_cmd tmpdir/pr19719 ""] if {![string match "PASS" $exec_output]} { fail $testname @@ -640,5 +644,5 @@ proc mix_pic_and_non_pic {cflags ldflags} { } } -mix_pic_and_non_pic "" "" -mix_pic_and_non_pic "-fPIE" "-pie" +mix_pic_and_non_pic [list "arm*-*-*" "aarch64*-*-*"] "" "" +mix_pic_and_non_pic [] "-fPIE" "-pie" |