about summary refs log tree commit diff
path: root/elf/ifuncmain9picstatic.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/ifuncmain9picstatic.c
parent92ad88fe72194ccb72a5f34fa3c76078bfc89400 (diff)
downloadglibc-cc3e573ce3a542ea6d3711311e41f66261747a0e.tar.gz
glibc-cc3e573ce3a542ea6d3711311e41f66261747a0e.tar.xz
glibc-cc3e573ce3a542ea6d3711311e41f66261747a0e.zip
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/ifuncmain9picstatic.c')
-rw-r--r--elf/ifuncmain9picstatic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/elf/ifuncmain9picstatic.c b/elf/ifuncmain9picstatic.c
new file mode 100644
index 0000000000..6151a45e88
--- /dev/null
+++ b/elf/ifuncmain9picstatic.c
@@ -0,0 +1 @@
+#include "ifuncmain9.c"