Don't run PR 34003 test if -z relro unsupported
Alan Modra
amodra@gmail.com
Thu Apr 2 13:33:58 GMT 2026
There are some x86 targets that don't support -z relro, eg. i386-lynxos
and i686-nto.
diff --git a/ld/testsuite/ld-elf/pr34003.d b/ld/testsuite/ld-elf/pr34003.d
index 9e04914e647..68026470fc5 100644
--- a/ld/testsuite/ld-elf/pr34003.d
+++ b/ld/testsuite/ld-elf/pr34003.d
@@ -2,6 +2,7 @@
#source: pr22393-1.s
#ld: -shared -z separate-code -z relro --rosegment
#readelf: -l --wide
+#notarget: ![check_relro_support]
#target: i?86-*-* x86_64-*-*
#...
--
Alan Modra
More information about the Binutils
mailing list