elf: Add <dl-r_debug.h>
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 29 Jan 2022 18:56:45 +0000 (10:56 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 31 Jan 2022 15:05:48 +0000 (07:05 -0800)
commit3fb18fd80c5900cc82748f3320b30516c57d24da
tree3b31e62ff66968dc1b17408ceb4a601a0a6eefc5
parent829ea0caca35800c4ffbebced7c3271293811144
elf: Add <dl-r_debug.h>

Add <dl-r_debug.h> to get the adddress of the r_debug structure after
relocation and its offset before relocation from the PT_DYNAMIC segment
to support DT_DEBUG, DT_MIPS_RLD_MAP_REL and DT_MIPS_RLD_MAP.

Co-developed-by: Xi Ruoyao <xry111@mengyan1223.wang>
elf/pldd-xx.c
elf/tst-dlmopen4.c
sysdeps/generic/dl-r_debug.h [new file with mode: 0644]
sysdeps/mips/dl-r_debug.h [new file with mode: 0644]