MCPcopy Create free account

hub / github.com/Arsylk/gosofix / functions

Functions59 in github.com/Arsylk/gosofix

↓ 19 callersMethodwriteAtOffset
writeUint64At writes a uint64 value at the specified offset
pkg/rebuilder.go:687
↓ 13 callersMethodRead
()
pkg/reader.go:121
↓ 13 callersMethodvaddrToOffset
(vaddr uint64)
pkg/rebuilder.go:163
↓ 12 callersMethodText
()
pkg/types.go:315
↓ 6 callersMethodType
()
pkg/types.go:510
↓ 6 callersMethodreadUint64At
readUint64At reads a uint64 from the source file at the given offset
pkg/reader.go:706
↓ 5 callersMethodreadStrtabString
readStrtabString reads a null-terminated string from the string table at the given name offset
pkg/reader.go:661
↓ 4 callersMethodstBind
Helper functions for symbol info
pkg/types.go:498
↓ 3 callersFunctionAlignUp
AlignUp rounds up 'value' to the next multiple of 'align'
pkg/types.go:561
↓ 3 callersMethodaddSection
(name string, shType SHT_Type, flags uint64, addr uint64, size uint64, link uint32, info uint32, entsize uint6
pkg/rebuilder.go:119
↓ 3 callersMethodstType
()
pkg/types.go:502
↓ 2 callersFunctionDemangleSymbol
DemangleSymbol attempts to demangle a C++ mangled symbol name. Returns the demangled name or the original if demangling fails.
pkg/types.go:575
↓ 2 callersMethodSym
()
pkg/types.go:514
↓ 2 callersMethodaddSectionName
(name string)
pkg/rebuilder.go:140
↓ 2 callersFunctionautoparseMemAddr
(addrStr string)
cmd/main.go:111
↓ 2 callersMethodcomputeRelValue
computeRelValue computes the fixed value for a REL relocation
pkg/rebuilder.go:604
↓ 2 callersMethodcomputeRelaValue
computeRelaValue computes the fixed value for a RELA relocation
pkg/rebuilder.go:641
↓ 2 callersFunctionfixElf
fixElf is the shared logic for both CLI and Library.
cmd/main.go:35
↓ 2 callersMethodreadSectionName
(nameOffset uint32)
pkg/rebuilder.go:154
↓ 1 callersFunctionFixELFHeaders
FixELFHeaders attempts to fix common issues with ELF headers. verbosity: 0=quiet (warn only), 1=info, 2=debug
pkg/sofixer.go:78
↓ 1 callersFunctionNewElfRebuilder
(reader *ElfReader, outputPath string)
pkg/rebuilder.go:20
↓ 1 callersMethodReadDyns
()
pkg/reader.go:219
↓ 1 callersMethodReadElfHeader
()
pkg/reader.go:148
↓ 1 callersMethodReadPhdrs
()
pkg/reader.go:179
↓ 1 callersMethodReadRelocs
()
pkg/reader.go:366
↓ 1 callersMethodResolveMetadata
ResolveMetadata resolves offsets for strings like soname, needed libs, and runpath
pkg/reader.go:584
↓ 1 callersMethodWriteFixedElf
WriteFixedElf copies the source file and writes fixed relocation values
pkg/rebuilder.go:40
↓ 1 callersFunctionautogenerateOutputPath
(inputPath string)
cmd/main.go:103
↓ 1 callersMethodcalculateGotBounds
calculateGotBounds scans relocations to determine .got size and range
pkg/reader.go:616
↓ 1 callersMethodcalculateHashSizes
calculateHashSizes determines the exact size of .hash and .gnu.hash sections
pkg/reader.go:552
↓ 1 callersMethodcalculateSymbolCount
calculateSymbolCount determines the total number of symbols using hash tables
pkg/reader.go:469
↓ 1 callersMethodcalculateVerneedSize
calculateVerneedSize walks the verneed chain to compute total section size
pkg/reader.go:325
↓ 1 callersFunctioncliMain
()
cmd/main.go:55
↓ 1 callersMethodcopyInput
()
pkg/rebuilder.go:100
↓ 1 callersMethodfindSectionForAddr
findSectionForAddr finds the section index that contains the given address
pkg/rebuilder.go:448
↓ 1 callersMethodfixSymbolSectionIndices
fixSymbolSectionIndices determines correct section indices for symbols
pkg/rebuilder.go:430
↓ 1 callersMethodreadRelocationTables
readRelocationTables reads all relocation tables (REL, RELA, JMPREL)
pkg/reader.go:403
↓ 1 callersMethodreadSymbols
readSymbols reads the symbol table
pkg/reader.go:375
↓ 1 callersMethodwriteDynamicSection
writeDynamicSection patches the existing dynamic section in the file
pkg/rebuilder.go:588
↓ 1 callersMethodwriteFixedInitsFinis
writeFixedInitsFinis writes addresses for init_array & finit_array
pkg/rebuilder.go:461
↓ 1 callersMethodwriteFixedRelocs
writeFixedRelocs writes REL, RELA & JMPREL(A)
pkg/rebuilder.go:524
↓ 1 callersMethodwriteSectionHeaders
()
pkg/rebuilder.go:177
↓ 1 callersMethodwriteSymbolTable
writeSymbolTable patches the existing symbol table in the file
pkg/rebuilder.go:572
FunctionFixElf
FixElf is the exported function for the shared library. The returned C string must be freed by the caller. export FixElf
cmd/main.go:22
MethodIsEmptySymbol
()
pkg/types.go:148
FunctionPageStart
(addr uint64)
pkg/types.go:568
MethodSym
()
pkg/types.go:522
MethodText
()
pkg/types.go:125
MethodText
()
pkg/types.go:250
MethodText
()
pkg/types.go:276
MethodText
()
pkg/types.go:408
MethodText
()
pkg/types.go:450
MethodText
()
pkg/types.go:476
MethodType
()
pkg/types.go:518
Functioninit
()
pkg/sofixer.go:21
Functionmain
()
cmd/main.go:118
Functionmain
tests/test_dl.c:7
FunctionreadArray
readArray reads up to 'count' elements of type T from file at the given offset. Returns the successfully read elements and the actual count. On EOF, r
pkg/sofixer.go:127
MethodstInfo
()
pkg/types.go:506