xoofx / LibObjectFile

LibObjectFile is a .NET library to read, manipulate and write linker and executable object files (e.g ELF, PE, DWARF, ar...)
BSD 2-Clause "Simplified" License
159 stars 11 forks source link

go build elf file, elf.write error Invalid ElfObjectFile #20

Open send010 opened 2 years ago

send010 commented 2 years ago

go build a elf file elf.write error: Invalid ElfObjectFile Error LB0154: Invalid PT_LOAD segment alignment requirements: (VirtualAddress - Range.Offset) & (Alignment - 1) == 128 while it must be == 0

image

filipnavara commented 2 years ago

Can you share the main ELF file? I don't think there's anything easily actionable without it.

send010 commented 2 years ago

main.zip

main file

send010 commented 2 years ago

i want to add a section to the elf file.