Skip to content

Commit

Permalink
Add SHT_LLVM_DEPENDENT_LIBRARIES
Browse files Browse the repository at this point in the history
  • Loading branch information
purplesyringa committed Oct 18, 2024
1 parent b25fb7f commit 7cbb0c4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/examples/src/readobj/elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1373,6 +1373,7 @@ const FLAGS_SHT: &[Flag<u32>] = &flags!(
SHT_PREINIT_ARRAY,
SHT_GROUP,
SHT_SYMTAB_SHNDX,
SHT_LLVM_DEPENDENT_LIBRARIES,
SHT_GNU_ATTRIBUTES,
SHT_GNU_HASH,
SHT_GNU_LIBLIST,
Expand Down
5 changes: 4 additions & 1 deletion src/build/elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,10 @@ impl<'data> Builder<'data> {
elf::SHT_PROGBITS
| elf::SHT_INIT_ARRAY
| elf::SHT_FINI_ARRAY
| elf::SHT_PREINIT_ARRAY => SectionData::Data(section.data(endian, data)?.into()),
| elf::SHT_PREINIT_ARRAY
| elf::SHT_LLVM_DEPENDENT_LIBRARIES => {
SectionData::Data(section.data(endian, data)?.into())
}
elf::SHT_REL | elf::SHT_RELA => relocations,
elf::SHT_SYMTAB => {
if index == symbols.section() {
Expand Down
2 changes: 2 additions & 0 deletions src/elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,8 @@ pub const SHT_GROUP: u32 = 17;
pub const SHT_SYMTAB_SHNDX: u32 = 18;
/// Start of OS-specific section types.
pub const SHT_LOOS: u32 = 0x6000_0000;
/// LLVM-style dependent libraries.
pub const SHT_LLVM_DEPENDENT_LIBRARIES: u32 = 0x6fff4c04;
/// Object attributes.
pub const SHT_GNU_ATTRIBUTES: u32 = 0x6fff_fff5;
/// GNU-style hash table.
Expand Down

0 comments on commit 7cbb0c4

Please sign in to comment.