Re-enable DT_MIPS_RLD_MAP_REL tag in ld.so
authorvisa <visa@openbsd.org>
Sun, 25 Dec 2022 09:39:37 +0000 (09:39 +0000)
committervisa <visa@openbsd.org>
Sun, 25 Dec 2022 09:39:37 +0000 (09:39 +0000)
commit41b7dcd750887eb8ab6d78cf1d643b7478c25325
treeed25c06aa56da990968294245b013b7b4787eba1
parent96df42a842ab455ffb49d53f8c36d3c4df35b924
Re-enable DT_MIPS_RLD_MAP_REL tag in ld.so

The linker now produces correct values for DT_MIPS_RLD_MAP_REL tags.

The DT_MIPS_RLD_MAP_REL offset is relative to the entry of the original
dynamic tags array. Therefore look up the tag from exe_obj->load_dyn
instead of exe_obj->Dyn.info to get the correct base address.

OK kettenis@ deraadt@
libexec/ld.so/loader.c