Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions crates/examples/src/readobj/elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
12 changes: 6 additions & 6 deletions crates/examples/testfiles/elf/base-relr-i686.readobj
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
12 changes: 6 additions & 6 deletions crates/examples/testfiles/elf/base-relr-x86_64.readobj
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
12 changes: 6 additions & 6 deletions crates/rewrite/testfiles/elf/base-relr-i686.noop
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
12 changes: 6 additions & 6 deletions crates/rewrite/testfiles/elf/base-relr-x86_64.noop
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
6 changes: 6 additions & 0 deletions src/elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading