elf: add missing DT_RELR* constants (#864)

This commit is contained in:
Mateusz Mikuła
2026-03-23 22:21:43 +01:00
committed by GitHub
parent 73fc340da2
commit 8fda9e66e6
6 changed files with 33 additions and 24 deletions
+3
View File
@@ -3524,6 +3524,9 @@ const FLAGS_DT: &[Flag<i64>] = &flags!(
DT_PREINIT_ARRAY,
DT_PREINIT_ARRAYSZ,
DT_SYMTAB_SHNDX,
DT_RELR,
DT_RELRSZ,
DT_RELRENT,
DT_GNU_PRELINKED,
DT_GNU_CONFLICTSZ,
DT_GNU_LIBLISTSZ,
@@ -207,15 +207,15 @@ ProgramHeader {
Value: 0x346
}
Dynamic {
Tag: 0x24
Tag: DT_RELR (0x24)
Value: 0x3D8
}
Dynamic {
Tag: 0x23
Tag: DT_RELRSZ (0x23)
Value: 0x10
}
Dynamic {
Tag: 0x25
Tag: DT_RELRENT (0x25)
Value: 0x4
}
Dynamic {
@@ -916,15 +916,15 @@ SectionHeader {
Value: 0x346
}
Dynamic {
Tag: 0x24
Tag: DT_RELR (0x24)
Value: 0x3D8
}
Dynamic {
Tag: 0x23
Tag: DT_RELRSZ (0x23)
Value: 0x10
}
Dynamic {
Tag: 0x25
Tag: DT_RELRENT (0x25)
Value: 0x4
}
Dynamic {
@@ -207,15 +207,15 @@ ProgramHeader {
Value: 0x522
}
Dynamic {
Tag: 0x24
Tag: DT_RELR (0x24)
Value: 0x600
}
Dynamic {
Tag: 0x23
Tag: DT_RELRSZ (0x23)
Value: 0x18
}
Dynamic {
Tag: 0x25
Tag: DT_RELRENT (0x25)
Value: 0x8
}
Dynamic {
@@ -974,15 +974,15 @@ SectionHeader {
Value: 0x522
}
Dynamic {
Tag: 0x24
Tag: DT_RELR (0x24)
Value: 0x600
}
Dynamic {
Tag: 0x23
Tag: DT_RELRSZ (0x23)
Value: 0x18
}
Dynamic {
Tag: 0x25
Tag: DT_RELRENT (0x25)
Value: 0x8
}
Dynamic {
@@ -207,15 +207,15 @@ ProgramHeader {
Value: 0x346
}
Dynamic {
Tag: 0x24
Tag: DT_RELR (0x24)
Value: 0x3D8
}
Dynamic {
Tag: 0x23
Tag: DT_RELRSZ (0x23)
Value: 0x10
}
Dynamic {
Tag: 0x25
Tag: DT_RELRENT (0x25)
Value: 0x4
}
Dynamic {
@@ -916,15 +916,15 @@ SectionHeader {
Value: 0x346
}
Dynamic {
Tag: 0x24
Tag: DT_RELR (0x24)
Value: 0x3D8
}
Dynamic {
Tag: 0x23
Tag: DT_RELRSZ (0x23)
Value: 0x10
}
Dynamic {
Tag: 0x25
Tag: DT_RELRENT (0x25)
Value: 0x4
}
Dynamic {
@@ -207,15 +207,15 @@ ProgramHeader {
Value: 0x522
}
Dynamic {
Tag: 0x24
Tag: DT_RELR (0x24)
Value: 0x600
}
Dynamic {
Tag: 0x23
Tag: DT_RELRSZ (0x23)
Value: 0x18
}
Dynamic {
Tag: 0x25
Tag: DT_RELRENT (0x25)
Value: 0x8
}
Dynamic {
@@ -974,15 +974,15 @@ SectionHeader {
Value: 0x522
}
Dynamic {
Tag: 0x24
Tag: DT_RELR (0x24)
Value: 0x600
}
Dynamic {
Tag: 0x23
Tag: DT_RELRSZ (0x23)
Value: 0x18
}
Dynamic {
Tag: 0x25
Tag: DT_RELRENT (0x25)
Value: 0x8
}
Dynamic {
+6
View File
@@ -1568,6 +1568,12 @@ pub const DT_PREINIT_ARRAY: i64 = 32;
pub const DT_PREINIT_ARRAYSZ: i64 = 33;
/// Address of SYMTAB_SHNDX section
pub const DT_SYMTAB_SHNDX: i64 = 34;
/// Address of Relr relocs
pub const DT_RELR: i64 = 36;
/// Total size of Relr relocs
pub const DT_RELRSZ: i64 = 35;
/// Size of one Relr reloc
pub const DT_RELRENT: i64 = 37;
/// Start of OS-specific
pub const DT_LOOS: i64 = 0x6000_000d;
/// End of OS-specific