about summary refs log tree commit diff
path: root/sysdeps/mips/ldsodefs.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-01-19 20:11:55 +0100
committerFlorian Weimer <fweimer@redhat.com>2022-01-19 20:11:55 +0100
commitf44820821a4ecdbb398375201b7c4ab9a1dd5983 (patch)
tree8ff4f6104be9134b602695c5b0d9ea82ca8cc68d /sysdeps/mips/ldsodefs.h
parent3e63b15d43ea6f61effcf92324e47e981bd7d0a8 (diff)
downloadglibc-f44820821a4ecdbb398375201b7c4ab9a1dd5983.tar.gz
glibc-f44820821a4ecdbb398375201b7c4ab9a1dd5983.tar.xz
glibc-f44820821a4ecdbb398375201b7c4ab9a1dd5983.zip
mips: Move DT_MIPS into <ldsodefs.h>
ELF_MACHINE_XHASH_SETUP in that file needs it.

Fixes commit c90363403b57b3b7919061851cb3e6d9c85e784a
("elf: Move _dl_setup_hash to its own file").
Diffstat (limited to 'sysdeps/mips/ldsodefs.h')
-rw-r--r--sysdeps/mips/ldsodefs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/mips/ldsodefs.h b/sysdeps/mips/ldsodefs.h
index c52092e9be..ab04f11b8e 100644
--- a/sysdeps/mips/ldsodefs.h
+++ b/sysdeps/mips/ldsodefs.h
@@ -26,6 +26,10 @@ struct La_mips_32_retval;
 struct La_mips_64_regs;
 struct La_mips_64_retval;
 
+/* Translate a processor specific dynamic tag to the index
+   in l_info array.  */
+#define DT_MIPS(x) (DT_MIPS_##x - DT_LOPROC + DT_NUM)
+
 #define ELF_MACHINE_GNU_HASH_ADDRIDX (DT_MIPS_XHASH - DT_LOPROC + DT_NUM)
 
 /* Calculate the index of a symbol in MIPS xhash.  */