[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/23169] IFUNC pointer should be allowed in executable
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug ld/23169] IFUNC pointer should be allowed in executable |
Date: |
Sat, 16 Jan 2021 15:06:00 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=23169
--- Comment #7 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=75a933f39918ce4f4b9481234992895e022787ee
commit 75a933f39918ce4f4b9481234992895e022787ee
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Jan 16 07:00:09 2021 -0800
ld/elf/x86: Don't compare IFUNC address in the shared object
On x86, glibc 2.33 starts to issue a fatal error message when calling
IFUNC function defined in the unrelocated executable from a shared
library.
1. Update x86 ELF linker to always convert IFUNC function defined in
position-dependent executable (PDE) to the normal function. GOT in PDE
will be updated by R_*_IRELATIVE at run-time.
2. Update PR ld/23169 tests not to compare function address of external
IFUNC function in the shared object to avoid calling the IFUNC function
defined in the unrelocated executable.
3. Remove pr23169e tests which call the IFUNC function defined in the
unrelocated position-independent executable from a shared library.
bfd/
PR ld/23169
* elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't
check pointer_equality_needed.
ld/
PR ld/23169
* testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
* testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
address.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/23169] IFUNC pointer should be allowed in executable,
cvs-commit at gcc dot gnu.org <=
- [Bug ld/23169] IFUNC pointer should be allowed in executable, i at maskray dot me, 2021/01/16
- [Bug ld/23169] IFUNC pointer should be allowed in executable, hjl.tools at gmail dot com, 2021/01/17
- [Bug ld/23169] IFUNC pointer should be allowed in executable, cvs-commit at gcc dot gnu.org, 2021/01/18
- [Bug ld/23169] IFUNC pointer should be allowed in executable, i at maskray dot me, 2021/01/18
- [Bug ld/23169] IFUNC pointer should be allowed in executable, hjl.tools at gmail dot com, 2021/01/18
- [Bug ld/23169] IFUNC pointer should be allowed in executable, hjl.tools at gmail dot com, 2021/01/18