From f897461d4fe72bb71854a6d0662de83008caccb7 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 18 Jan 2023 10:32:14 -0500 Subject: 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/mips64/reloc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/mips64/reloc.h') diff --git a/arch/mips64/reloc.h b/arch/mips64/reloc.h index fdb5edc9..145d8b0b 100644 --- a/arch/mips64/reloc.h +++ b/arch/mips64/reloc.h @@ -38,6 +38,7 @@ #define NEED_MIPS_GOT_RELOCS 1 #define DT_DEBUG_INDIRECT DT_MIPS_RLD_MAP +#define DT_DEBUG_INDIRECT_REL DT_MIPS_RLD_MAP_REL #define ARCH_SYM_REJECT_UND(s) (!((s)->st_other & STO_MIPS_PLT)) #define CRTJMP(pc,sp) __asm__ __volatile__( \ -- cgit v1.2.1