#source: ../ld-x86-64/ifunc-textrel-1.s
#as: --32
-#ld: -m elf_i386 -pie
+#ld: -m elf_i386 -pie -z notext
#warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIE
#source: ../ld-x86-64/ifunc-textrel-1.s
#as: --32
-#ld: -m elf_i386 -shared
+#ld: -m elf_i386 -shared -z notext
#warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIC
#source: pr18801.s
#as: --32
-#ld: -m elf_i386 -pie
+#ld: -m elf_i386 -pie -z notext
#warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIE
#source: pr18801.s
#as: --32
-#ld: -m elf_i386 -shared
+#ld: -m elf_i386 -shared -z notext
#warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIC
#source: ifunc-textrel-1.s
#as: --64 -defsym __x86_64__=1
-#ld: -m elf_x86_64 -pie
+#ld: -m elf_x86_64 -pie -z notext
#warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIE
#source: ifunc-textrel-1.s
#as: --64 -defsym __x86_64__=1
-#ld: -m elf_x86_64 -shared
+#ld: -m elf_x86_64 -shared -z notext
#warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIC
#source: pr18801.s
#as: --64
-#ld: -melf_x86_64 -pie
+#ld: -melf_x86_64 -pie -z notext
#warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIE
#source: pr18801.s
#as: --64
-#ld: -melf_x86_64 -shared
+#ld: -melf_x86_64 -shared -z notext
#warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIC