Test for commit
4916030821bb and
b293661219c3.
* testsuite/ld-powerpc/empty.s: New file.
* testsuite/ld-powerpc/undefweak.d,
* testsuite/ld-powerpc/undefweak.s: New testcase.
* testsuite/ld-powerpc/powerpc.exp: Run it.
+2021-05-05 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-powerpc/empty.s: New file.
+ * testsuite/ld-powerpc/undefweak.d,
+ * testsuite/ld-powerpc/undefweak.s: New testcase.
+ * testsuite/ld-powerpc/powerpc.exp: Run it.
+
2021-05-03 Alan Modra <amodra@gmail.com>
* testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
{"relocatable relaxing large" "-melf32ppc -r --relax" "" "-a32" "relax.s big.s"
{{objdump -dr relaxrl.d}}
"rrelax"}
+ {"build empty shared library" "-shared" "" "" "empty.s" {} "empty.so"}
}
set ppc64elftests {
run_dump_test "tprel32"
run_dump_test "tprelbad"
+
+run_dump_test "undefweak"
--- /dev/null
+#ld: tmpdir/empty.so
+#readelf: --dyn-syms -r -W
+
+#...
+.* R_PPC(|64)_ADDR(32|64) .* a \+ 0
+#...
+.* R_PPC(|64)_JMP_SLOT .* b \+ 0
+#...
+.* WEAK +DEFAULT +UND b
+.* WEAK +DEFAULT +UND a
--- /dev/null
+ .weak a,b
+ .data
+ .dc.a a
+ .text
+ .global _start
+_start:
+ bl b
+ nop