- Notifications
You must be signed in to change notification settings - Fork 180
Open
Description
So I have been trying to use add_entry in the dynamic_section_accessor, but when checking the ELF afterwards it adds the Elf64_Dyn entries, but only after the NULL terminator, is there a way to get this added before the null terminator?
I'm unsure if there's an additional step needed for reordering?
// Use ELFIO's accessor ELFIO::dynamic_section_accessor s_Dynamic(s_InputElf, s_InputSection); for (auto& s_ImportEntry : s_ImportEntrys) { s_Dynamic.add_entry(0, s_ImportEntry.d_tag, s_ImportEntry.d_un.d_val); auto s_ = s_InputElf.validate(); const auto s_OutputPath = std::string("output.elf"); s_InputElf.save(s_OutputPath); Thanks in advance.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels