At least, not in the GOT. R_PPC64_RELATIVE is fine for powerpc64 in
the .opd section.
PR 22269
* testsuite/ld-elf/pr22269-1.rd: Look for GOT section NONE and
RELATIVE relocs.
* testsuite/ld-elf/shared.exp (pr22269-1): Give test a better
name. Use -z nocombreloc.
+2019-10-22 Alan Modra <amodra@gmail.com>
+
+ PR 22269
+ * testsuite/ld-elf/pr22269-1.rd: Look for GOT section NONE and
+ RELATIVE relocs.
+ * testsuite/ld-elf/shared.exp (pr22269-1): Give test a better
+ name. Use -z nocombreloc.
+
2019-10-19 Alan Modra <amodra@gmail.com>
PR ld/25110
-# NONE relocs are not needed in a PIE.
+# There should not be any NONE or RELATIVE relocs for foo
#failif
#...
-[0-9a-f]+ +[0-9a-f]+ +R_.*_NONE.*
+Relocation section '\.rela?\.got' .*
+ Offset +Info +Type .*
+[0-9a-f]+ +[0-9a-f]+ +R_.*_(NONE|RELATIVE).*
#pass
run_ld_link_tests [list \
[list \
- "Build pr22269-1" \
- "-pie -e _start --no-dynamic-linker -z text" \
+ "pr22269-1 (static pie undefined weak)" \
+ "-pie -e _start --no-dynamic-linker -z text -z nocombreloc " \
"" \
"$AFLAGS_PIC" \
{ pr22269-1.c } \