You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
}
The text was updated successfully, but these errors were encountered:
This is not quite correct. Stripped debuginfo does not necessarily have the right offsets anymore (split/objdump remove them because the .text section is not there anymore). The binary that was profiled always will though, because otherwise the executable can't be executed.
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.
The text was updated successfully, but these errors were encountered: