about summary refs log tree commit diff
path: root/elf/elf.h
diff options
context:
space:
mode:
authorMatthew Fortune <matthew.fortune@imgtec.com>2015-06-11 10:43:48 +0100
committerMatthew Fortune <matthew.fortune@imgtec.com>2015-06-26 12:03:45 +0100
commita2057c984e4314c3740f04cf54e36c824e4c8f32 (patch)
tree672f0235b7e453357caf0a2ae08ada10e5506f34 /elf/elf.h
parenta8e2112ae3e57fae592d84af2936a61d6239a248 (diff)
downloadglibc-a2057c984e4314c3740f04cf54e36c824e4c8f32.tar.gz
glibc-a2057c984e4314c3740f04cf54e36c824e4c8f32.tar.xz
glibc-a2057c984e4314c3740f04cf54e36c824e4c8f32.zip
Add support for DT_MIPS_RLD_MAP_REL.
This tag allows debugging of MIPS position independent executables
and provides access to shared library information.

	* elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
	(DT_MIPS_NUM): Update.
	* sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
	DT_MIPS_RLD_MAP_REL.
Diffstat (limited to 'elf/elf.h')
-rw-r--r--elf/elf.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/elf/elf.h b/elf/elf.h
index 12feb915bf..fbadda4377 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -1727,7 +1727,11 @@ typedef struct
    PLT is writable.  For a non-writable PLT, this is omitted or has a zero
    value.  */
 #define DT_MIPS_RWPLT        0x70000034
-#define DT_MIPS_NUM	     0x35
+/* An alternative description of the classic MIPS RLD_MAP that is usable
+   in a PIE as it stores a relative offset from the address of the tag
+   rather than an absolute address.  */
+#define DT_MIPS_RLD_MAP_REL  0x70000035
+#define DT_MIPS_NUM	     0x36
 
 /* Legal values for DT_MIPS_FLAGS Elf32_Dyn entry.  */