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.
]
}
-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)"
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
}
}
-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"