fix debugger tracking of shared libraries on mips with PIE main program
authorRich Felker <dalias@aerifal.cx>
Wed, 18 Jan 2023 15:32:14 +0000 (10:32 -0500)
committerRich Felker <dalias@aerifal.cx>
Wed, 18 Jan 2023 15:32:14 +0000 (10:32 -0500)
commitf897461d4fe72bb71854a6d0662de83008caccb7
tree32a00795b118694b618b9736ee44a9de98775d62
parenta4b0a665b84c4a3117cca152fe28c204d23ece46
fix debugger tracking of shared libraries on mips with PIE main program

mips has its own mechanisms for DT_DEBUG because it makes _DYNAMIC
read-only, and the original mechanism, DT_MIPS_RLD_MAP, was
PIE-incompatible. DT_MIPS_RLD_MAP_REL was added to remedy this, but we
never implemented support for it. add it now using the same idioms for
mips-specific ldso logic.
arch/mips/reloc.h
arch/mips64/reloc.h
arch/mipsn32/reloc.h
ldso/dynlink.c
src/internal/dynlink.h