From e48f0c8f1b9fdb195394dc7afea02ce55e4ba5e4 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 31 Oct 2017 11:13:30 +1030 Subject: PR22374 testcase, function pointer references in .data Function pointer references in .data ought to use a dynamic reloc. There shouldn't be any need for a PLT entry and definitely no copy reloc. This test fails on quite a few targets, but isn't something that anyone should worry about too much. It's really just a missed optimization. PR 22374 * testsuite/ld-elf/pr22374a.s, * testsuite/ld-elf/pr22374b.s, * testsuite/ld-elf/pr22374-1.r, * testsuite/ld-elf/pr22374-2.r: New test. * testsuite/ld-elf/elf.exp: Run it. --- ld/testsuite/ld-elf/pr22374a.s | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 ld/testsuite/ld-elf/pr22374a.s (limited to 'ld/testsuite/ld-elf/pr22374a.s') diff --git a/ld/testsuite/ld-elf/pr22374a.s b/ld/testsuite/ld-elf/pr22374a.s new file mode 100644 index 0000000..e85c120 --- /dev/null +++ b/ld/testsuite/ld-elf/pr22374a.s @@ -0,0 +1,2 @@ + .data + .dc.a foo -- cgit v1.1