diff options
author | Florian Weimer <fweimer@redhat.com> | 2019-02-28 11:52:44 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2019-02-28 11:52:44 +0100 |
commit | cc3e573ce3a542ea6d3711311e41f66261747a0e (patch) | |
tree | e79cc120df14b8f345f1c5c32db5a9ee1c8715b3 /elf/ifuncmain9static.c | |
parent | elf/Makefile: Run IFUNC tests if binutils supports IFUNC (diff) | |
download | glibc-cc3e573ce3a542ea6d3711311e41f66261747a0e.tar.gz glibc-cc3e573ce3a542ea6d3711311e41f66261747a0e.tar.bz2 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/ifuncmain9static.c')
-rw-r--r-- | elf/ifuncmain9static.c | 1 |
1 files changed, 1 insertions, 0 deletions
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" |