about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-08-02 17:24:47 -0400
committerRich Felker <dalias@aerifal.cx>2022-08-02 17:27:45 -0400
commitd32dadd60efb9d3b255351a3b532f8e4c3dd0db1 (patch)
tree138a5a8889ec07ec020f12ecea4a7341611319b0 /include
parent2404d9d643763e6eceafa9a1918925d80a84ad44 (diff)
downloadmusl-d32dadd60efb9d3b255351a3b532f8e4c3dd0db1.tar.gz
musl-d32dadd60efb9d3b255351a3b532f8e4c3dd0db1.tar.xz
musl-d32dadd60efb9d3b255351a3b532f8e4c3dd0db1.zip
ldso: support DT_RELR relative relocation format
this resolves DT_RELR relocations in non-ldso, dynamic-linked objects.
Diffstat (limited to 'include')
-rw-r--r--include/elf.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/elf.h b/include/elf.h
index 86e2f0bb..9e980a29 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -385,7 +385,8 @@ typedef struct {
 #define SHT_PREINIT_ARRAY 16
 #define SHT_GROUP	  17
 #define SHT_SYMTAB_SHNDX  18
-#define	SHT_NUM		  19
+#define SHT_RELR	  19
+#define	SHT_NUM		  20
 #define SHT_LOOS	  0x60000000
 #define SHT_GNU_ATTRIBUTES 0x6ffffff5
 #define SHT_GNU_HASH	  0x6ffffff6
@@ -754,7 +755,10 @@ typedef struct {
 #define DT_PREINIT_ARRAY 32
 #define DT_PREINIT_ARRAYSZ 33
 #define DT_SYMTAB_SHNDX	34
-#define	DT_NUM		35
+#define DT_RELRSZ	35
+#define DT_RELR		36
+#define DT_RELRENT	37
+#define	DT_NUM		38
 #define DT_LOOS		0x6000000d
 #define DT_HIOS		0x6ffff000
 #define DT_LOPROC	0x70000000