summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViolet Purcell <vimproved@inventati.org>2023-11-04 12:09:20 -0400
committerRich Felker <dalias@aerifal.cx>2023-11-06 08:02:59 -0500
commit6be76895f6863100a311d474a42abdbb6466189d (patch)
tree4a806a8dd2ddc75b8aaea1e398391411c196488e
parent79bdacff83a6bd5b70ff5ae5eb8b6de82c2f7c30 (diff)
downloadmusl-6be76895f6863100a311d474a42abdbb6466189d.tar.gz
elf.h: add typedefs for Elf64_Relr and Elf32_Relr
These were overlooked when DT_RELR was added in commit d32dadd60efb9d3b255351a3b532f8e4c3dd0db1, potentially breaking software that treats presence of the DT_RELR macro as implying they exist.
-rw-r--r--include/elf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/elf.h b/include/elf.h
index 23f2c4bc..72d17c3a 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -558,6 +558,11 @@ typedef struct {
+typedef Elf32_Word Elf32_Relr;
+typedef Elf64_Xword Elf64_Relr;
+
+
+
#define ELF32_R_SYM(val) ((val) >> 8)
#define ELF32_R_TYPE(val) ((val) & 0xff)
#define ELF32_R_INFO(sym, type) (((sym) << 8) + ((type) & 0xff))