mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-05 12:40:55 +08:00
We can't relocate entries in dynamic section if it is readonly:
1. Add a l_ld_readonly field to struct link_map to indicate if dynamic
section is readonly and set it based on p_flags of PT_DYNAMIC segment.
2. Replace DL_RO_DYN_SECTION with dl_relocate_ld to decide if dynamic
section should be relocated.
3. Remove DL_RO_DYN_TEMP_CNT.
4. Don't use a static dynamic section to make readonly dynamic section
in vDSO writable.
5. Remove the temp argument from elf_get_dynamic_info.
This fixes BZ #28340.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
(cherry picked from commit
|
||
---|---|---|
.. | ||
bits | ||
nofpu | ||
nptl | ||
rv32 | ||
rv64 | ||
rvd | ||
rvf | ||
sys | ||
__longjmp.S | ||
bsd-_setjmp.c | ||
bsd-setjmp.c | ||
configure | ||
configure.ac | ||
dl-irel.h | ||
dl-machine.h | ||
dl-relocate-ld.h | ||
dl-tls.h | ||
dl-trampoline.S | ||
e_sqrtl.c | ||
fpu_control.h | ||
gccframe.h | ||
Implies | ||
jmpbuf-offsets.h | ||
jmpbuf-unwind.h | ||
ldsodefs.h | ||
libc-tls.c | ||
linkmap.h | ||
machine-gmon.h | ||
Makefile | ||
math-tests-snan-payload.h | ||
math-tests-trap.h | ||
memusage.h | ||
preconfigure | ||
setjmp.S | ||
sfp-machine.h | ||
sotruss-lib.c | ||
stackinfo.h | ||
start.S | ||
tininess.h | ||
tls-macros.h | ||
tst-audit.h |