Open
Description
no need to do that.
in extracing of elf file, you could use this to add enough information to elf file to compute base address.
func(p *elf.Prog) bool {
// use debuginfo to compute baseAddress
// function GetBase need elf.FileHeader, elf.ProgHeader and stextOffset.
// - stextOffset compute from ef.Symbols()
// - elf.FileHeader would all be written through elfwriter.NewFromSource
// - elf.ProgHeader need .text and elf.PT_LOAD
return p.Type == elf.PT_LOAD
}
Metadata
Assignees
Labels
No labels