Skip to content

remove upload ExecutableInfo in WriteRawRequest. #3014

Open
@zdyj3170101136

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions