Documentation
¶
Index ¶
- func AddSymbolPrefixUnder(name string, isCpp bool) string
- func GenSymbolTableData(commonSymbols []*llcppg.SymbolInfo) ([]byte, error)
- func GenerateSymTable(symbols []*nm.Symbol, headerInfos map[string]*parse.SymbolInfo) ([]byte, error)
- func GetCommonSymbols(dylibSymbols []*nm.Symbol, headerSymbols map[string]*parse.SymbolInfo) []*llcppg.SymbolInfo
- func ParseDylibSymbols(lib string) ([]*nm.Symbol, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSymbolPrefixUnder ¶
For mutiple os test,the nm output's symbol name is different.
func GenSymbolTableData ¶
func GenSymbolTableData(commonSymbols []*llcppg.SymbolInfo) ([]byte, error)
func GenerateSymTable ¶ added in v0.3.0
func GetCommonSymbols ¶
func GetCommonSymbols(dylibSymbols []*nm.Symbol, headerSymbols map[string]*parse.SymbolInfo) []*llcppg.SymbolInfo
finds the intersection of symbols from the dynamic library's symbol table and the symbols parsed from header files. It returns a list of symbols that can be externally linked.
func ParseDylibSymbols ¶
ParseDylibSymbols parses symbols from dynamic libraries specified in the lib string. It handles multiple libraries (e.g., -L/opt/homebrew/lib -llua -lm) and returns symbols if at least one library is successfully parsed. Errors from inaccessible libraries (like standard libs) are logged as warnings.
Returns symbols and nil error if any symbols are found, or nil and error if none found.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.