Home
last modified time | relevance | path

Searched refs:symbol (Results 1 – 11 of 11) sorted by relevance

/build/soong/symbol_inject/
Dsymbol_inject.go54 func InjectStringSymbol(file *File, w io.Writer, symbol, value, from string) error { argument
55 offset, size, err := findSymbol(file, symbol)
85 func InjectUint64Symbol(file *File, w io.Writer, symbol string, value uint64) error {
86 offset, size, err := findSymbol(file, symbol)
92 return fmt.Errorf("symbol %q is not a uint64, it is %d bytes long", symbol, size)
124 for i, symbol := range file.Symbols {
125 if symbol.Name == symbolName {
129 if file.Symbols[n].Section != symbol.Section {
133 if file.Symbols[n].Addr > symbol.Addr {
138 size := symbol.Size
[all …]
Delf.go85 for _, symbol := range symbols {
86 if elf.ST_TYPE(symbol.Info) != elf.STT_OBJECT {
89 if symbol.Section == elf.SHN_UNDEF || symbol.Section >= elf.SHN_LORESERVE {
92 if int(symbol.Section) >= len(file.Sections) {
93 return nil, fmt.Errorf("invalid section index %d", symbol.Section)
96 section := file.Sections[symbol.Section]
103 addr = symbol.Value
109 if symbol.Value < section.Addr {
112 addr = symbol.Value - section.Addr
113 if addr+symbol.Size > section.Size {
[all …]
Dmacho.go54 for _, symbol := range symbols {
55 if symbol.Sect > 0 {
56 section := file.Sections[symbol.Sect-1]
59 Name: strings.TrimPrefix(symbol.Name, "_"),
61 Addr: symbol.Value - section.Addr,
88 for _, symbol := range machoFile.Symtab.Syms {
89 fmt.Printf("\t\t\t%#v,\n", symbol)
Dpe.go60 for _, symbol := range symbols {
61 if symbol.SectionNumber > 0 {
63 Name: strings.TrimPrefix(symbol.Name, prefix),
65 Addr: uint64(symbol.Value),
68 Section: file.Sections[symbol.SectionNumber-1],
94 for _, symbol := range peFile.Symbols {
95 fmt.Printf("\t\t%#v,\n", symbol)
Delf_test.go25 symbol string
30 symbol: "soong_build_number",
36 symbol: "symbol1",
42 symbol: "symbol2",
54 offset, size, err := findSymbol(file, testCase.symbol)
Dmacho_test.go26 symbol string
31 symbol: "soong_build_number",
37 symbol: "symbol1",
43 symbol: "symbol2",
55 offset, size, err := findSymbol(file, testCase.symbol)
Dpe_test.go26 symbol string
31 symbol: "soong_build_number",
37 symbol: "symbol1",
43 symbol: "symbol2",
63 symbol: "soong_build_number",
81 symbol: "soong_build_number",
101 symbol: "soong_build_number",
120 symbol: "soong_build_number",
132 offset, size, err := findSymbol(file, testCase.symbol)
/build/soong/cc/
Dgen_stub_libs.py136 def should_omit_symbol(symbol, arch, api, vndk, apex): argument
138 no_vndk_no_apex = 'vndk' not in symbol.tags and 'apex' not in symbol.tags
140 ('vndk' in symbol.tags and vndk) or \
141 ('apex' in symbol.tags and apex)
144 if not symbol_in_arch(symbol.tags, arch):
146 if not symbol_in_api(symbol.tags, arch, api):
290 for symbol in version.symbols:
291 if should_omit_symbol(symbol, self.arch, self.api, self.vndk, self.apex):
294 if symbol.name in symbol_names:
295 multiply_defined_symbols.add(symbol.name)
[all …]
Dtest_gen_stub_libs.py361 symbol = parser.parse_symbol()
362 self.assertEqual('foo', symbol.name)
363 self.assertEqual([], symbol.tags)
366 symbol = parser.parse_symbol()
367 self.assertEqual('bar', symbol.name)
368 self.assertEqual(['baz', 'qux'], symbol.tags)
/build/soong/symbol_inject/cmd/
Dsymbol_inject.go28 symbol = flag.String("s", "", "symbol to inject into") var
53 if *symbol == "" {
91 err = symbol_inject.InjectStringSymbol(file, w, *symbol, *value, *from)
/build/make/tools/
Dcheck_elf_file.py286 for symbol in cls._parse_dynamic_symbols_internal(lines_it):
287 name, version = cls._parse_symbol_name(symbol['Name'])
289 if symbol['Section'] == 'Undefined':
290 if symbol['Binding'] != 'Weak':
293 if symbol['Binding'] != 'Local':
312 symbol = {}
316 yield symbol
317 symbol = None
324 symbol[key] = value