XFAIL PR ld/20995 tests for lynxos and nto targets

Message ID 20190408205556.15944-1-hjl.tools@gmail.com
State New
Headers show
Series
  • XFAIL PR ld/20995 tests for lynxos and nto targets
Related show

Commit Message

H.J. Lu April 8, 2019, 8:55 p.m.
lynxos and nto targets don't support RELRO.

	* testsuite/ld-elf/shared.exp: XFAIL PR ld/20995 tests for
	lynxos and nto targets.
---
 ld/ChangeLog                   | 5 +++++
 ld/testsuite/ld-elf/shared.exp | 6 ++++--
 2 files changed, 9 insertions(+), 2 deletions(-)

-- 
2.20.1

Comments

Alan Modra April 10, 2019, 6:06 a.m. | #1
On Mon, Apr 08, 2019 at 01:55:56PM -0700, H.J. Lu wrote:
> lynxos and nto targets don't support RELRO.

> 

> 	* testsuite/ld-elf/shared.exp: XFAIL PR ld/20995 tests for

> 	lynxos and nto targets.


This resulted in:
powerpc-nto  +XPASS: Build pr20995-2.so
powerpc-nto  +XPASS: pr20995-2

	* testsuite/ld-elf/shared.exp: Don't xfail PR ld/20995 for
	powerpc-nto.

diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp
index 742fe974c7..b5a01c9379 100644
--- a/ld/testsuite/ld-elf/shared.exp
+++ b/ld/testsuite/ld-elf/shared.exp
@@ -433,7 +433,7 @@ run_ld_link_tests [list \
 	"-shared -z relro" "" "$AFLAGS_PIC" \
 	{pr20995c.s} {{readelf {-l --wide} pr20995-2so.r}} "pr20995-2.so"] \
 ] "tic6x-*-*" "arm*-*-eabi*" "hppa*64*-*-hpux*" "aarch64*-*-elf*" \
-  "*-*-lynxos*" "*-*-nto*"
+  "*-*-lynxos*" "arm*-*-nto*" "i?86-*-nto*" "sh*-*-nto*"
 
 # These targets don't copy dynamic variables into .bss.
 setup_xfail "alpha-*-*" "bfin-*-*" "ia64-*-*" "xtensa-*-*"
@@ -454,7 +454,7 @@ run_ld_link_tests [list \
 	"pr20995-2" \
 	"$LFLAGS" "tmpdir/pr20995-2.so" "$AFLAGS_NONPIC" \
 	{pr20995a.s} {{readelf {-S --wide} pr20995.r}} "pr20995-2"]
-] "*-*-lynxos*" "*-*-nto*"
+] "*-*-lynxos*" "arm*-*-nto*" "i?86-*-nto*" "sh*-*-nto*"
 
 run_ld_link_tests [list \
     [list "Build pr22374 shared library" \

-- 
Alan Modra
Australia Development Lab, IBM

Patch

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 2ac6cddee6..0c7d99c509 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@ 
+2019-04-08  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* testsuite/ld-elf/shared.exp: XFAIL PR ld/20995 tests for
+	lynxos and nto targets.
+
 2019-04-08  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* Makefile.am (ALL_EMULATION_SOURCES): Remove eelf_i386_chaos.c.
diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp
index fc19bc056b..742fe974c7 100644
--- a/ld/testsuite/ld-elf/shared.exp
+++ b/ld/testsuite/ld-elf/shared.exp
@@ -432,7 +432,8 @@  run_ld_link_tests [list \
     [list "Build pr20995-2.so" \
 	"-shared -z relro" "" "$AFLAGS_PIC" \
 	{pr20995c.s} {{readelf {-l --wide} pr20995-2so.r}} "pr20995-2.so"] \
-] "tic6x-*-*" "arm*-*-eabi*" "hppa*64*-*-hpux*" "aarch64*-*-elf*"
+] "tic6x-*-*" "arm*-*-eabi*" "hppa*64*-*-hpux*" "aarch64*-*-elf*" \
+  "*-*-lynxos*" "*-*-nto*"
 
 # These targets don't copy dynamic variables into .bss.
 setup_xfail "alpha-*-*" "bfin-*-*" "ia64-*-*" "xtensa-*-*"
@@ -452,7 +453,8 @@  run_ld_link_tests [list \
     [list \
 	"pr20995-2" \
 	"$LFLAGS" "tmpdir/pr20995-2.so" "$AFLAGS_NONPIC" \
-	{pr20995a.s} {{readelf {-S --wide} pr20995.r}} "pr20995-2"]]
+	{pr20995a.s} {{readelf {-S --wide} pr20995.r}} "pr20995-2"]
+] "*-*-lynxos*" "*-*-nto*"
 
 run_ld_link_tests [list \
     [list "Build pr22374 shared library" \