summaryrefslogtreecommitdiff
path: root/elf/ifuncmain9pic.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2019-02-28 11:52:44 +0100
committerFlorian Weimer <fweimer@redhat.com>2019-02-28 11:52:44 +0100
commitcc3e573ce3a542ea6d3711311e41f66261747a0e (patch)
treee79cc120df14b8f345f1c5c32db5a9ee1c8715b3 /elf/ifuncmain9pic.c
parent92ad88fe72194ccb72a5f34fa3c76078bfc89400 (diff)
downloadglibc-cc3e573ce3a542ea6d3711311e41f66261747a0e.tar.gz
elf: Add tests with a local IFUNC resolver [BZ #23937]
The existing tests all use global symbols (but with different visibility). Local symbols could be treated differently by the compiler and linker (as was the case on POWER ELFv2, causing bug 23937), and we did not have test coverage for this. Tested on x86-64 and POWER ELFv2 little-endian, with and without --disable-multi-arch. On POWER, the test cases elf/ifuncmain9, elf/ifuncmain9pic, elf/ifuncmain9pie reproduce bug 23937 with older binutils.
Diffstat (limited to 'elf/ifuncmain9pic.c')
-rw-r--r--elf/ifuncmain9pic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/elf/ifuncmain9pic.c b/elf/ifuncmain9pic.c
new file mode 100644
index 0000000000..6151a45e88
--- /dev/null
+++ b/elf/ifuncmain9pic.c
@@ -0,0 +1 @@
+#include "ifuncmain9.c"