A number of targets need dynamic relocs in PIEs for reasons other than
relocating thread variables. The PR is about text relocations, and,
reading between the lines, unnecessary dynamic tprel relocations.
Change the test to check for those conditions rather than no dynamic
relocations
PR ld/22263
* testsuite/ld-elf/tls.exp: Link with -z text.
* testsuite/ld-elf/pr22263-1.rd: Test for tprel relocs.
+2017-10-13 Alan Modra <amodra@gmail.com>
+
+ PR ld/22263
+ * testsuite/ld-elf/tls.exp: Link with -z text.
+ * testsuite/ld-elf/pr22263-1.rd: Test for tprel relocs.
+
2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
PR ld/22263
-
-There are no relocations in this file.
+# tprel relocs are not needed in a PIE
+#failif
+#...
+.* R_.*_TP.*
+#pass
run_ld_link_tests [list \
[list \
"Build pr22263-1" \
- "-pie -e _start" \
+ "-pie -e _start -z text" \
"" \
"" \
{ pr22263-1a.c pr22263-1b.c } \