MCPcopy Index your code
hub / github.com/Binject/debug / AddRelocationForSymbol

Method AddRelocationForSymbol

elf/reloc_edit.go:110–120  ·  view source on GitHub ↗

AddRelocationForSymbol builds and adds a relocation for the named symbol. If addend is nil, a REL entry is created. Otherwise a RELA entry is used.

(sectionName, symbolName string, offset uint64, rType uint32, addend *int64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 3

SectionMethod · 0.95
symbolIndexByNameMethod · 0.95
addRelocationEntryMethod · 0.95

Tested by 2