From cc3e573ce3a542ea6d3711311e41f66261747a0e Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 28 Feb 2019 11:52:44 +0100 Subject: 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. --- elf/ifuncmain9static.c | 1 + 1 file changed, 1 insertion(+) create mode 100644 elf/ifuncmain9static.c (limited to 'elf/ifuncmain9static.c') diff --git a/elf/ifuncmain9static.c b/elf/ifuncmain9static.c new file mode 100644 index 0000000000..6151a45e88 --- /dev/null +++ b/elf/ifuncmain9static.c @@ -0,0 +1 @@ +#include "ifuncmain9.c" -- cgit 1.4.1