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. --- src/internal/dynlink.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/internal/dynlink.h b/src/internal/dynlink.h index 830354eb..06f41d09 100644 --- a/src/internal/dynlink.h +++ b/src/internal/dynlink.h @@ -92,6 +92,10 @@ struct fdpic_dummy_loadmap { #define DT_DEBUG_INDIRECT 0 #endif +#ifndef DT_DEBUG_INDIRECT_REL +#define DT_DEBUG_INDIRECT_REL 0 +#endif + #define AUX_CNT 32 #define DYN_CNT 37 -- cgit v1.2.1