Searched refs:symbol (Results 1 – 15 of 15) sorted by relevance
/build/soong/symbol_inject/ |
D | symbol_inject.go | 54 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 …]
|
D | elf.go | 85 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 …]
|
D | macho.go | 54 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)
|
D | pe.go | 60 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)
|
D | elf_test.go | 25 symbol string 30 symbol: "soong_build_number", 36 symbol: "symbol1", 42 symbol: "symbol2", 54 offset, size, err := findSymbol(file, testCase.symbol)
|
D | macho_test.go | 26 symbol string 31 symbol: "soong_build_number", 37 symbol: "symbol1", 43 symbol: "symbol2", 55 offset, size, err := findSymbol(file, testCase.symbol)
|
D | pe_test.go | 26 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/ndkstubgen/ |
D | __init__.py | 55 for symbol in version.symbols: 56 if symbolfile.should_omit_symbol(symbol, self.arch, self.api, 60 if symbolfile.symbol_versioned_in_api(symbol.tags, self.api): 62 pruned_symbols.append(symbol) 68 for symbol in pruned_symbols: 70 symbol.tags, self.api) 72 self.version_script.write(' ' + symbol.name + ';\n') 75 if 'weak' in symbol.tags: 78 if 'var' in symbol.tags: 80 weak, symbol.name)) [all …]
|
/build/soong/cc/symbolfile/ |
D | __init__.py | 184 def should_omit_symbol(symbol: Symbol, arch: Arch, api: int, llndk: bool, 187 no_llndk_no_apex = 'llndk' not in symbol.tags and 'apex' not in symbol.tags 189 ('llndk' in symbol.tags and llndk) or \ 190 ('apex' in symbol.tags and apex) 193 if not symbol_in_arch(symbol.tags, arch): 195 if not symbol_in_api(symbol.tags, arch, api): 312 for symbol in version.symbols: 313 if should_omit_symbol(symbol, self.arch, self.api, self.llndk, 317 if symbol.name in symbol_names: 318 multiply_defined_symbols.add(symbol.name) [all …]
|
D | test_symbolfile.py | 424 symbol = parser.parse_symbol() 425 self.assertEqual('foo', symbol.name) 426 self.assertEqual([], symbol.tags) 429 symbol = parser.parse_symbol() 430 self.assertEqual('bar', symbol.name) 431 self.assertEqual(['baz', 'qux'], symbol.tags)
|
/build/soong/docs/ |
D | map_files.md | 32 Comments on the same line as either a version definition or a symbol name have 52 symbol visibility of the library to expose only the interface named by the map 55 symbol named in any `global:` group will be visible in the implementation 67 Comments on the same line as a version definition or a symbol name are 73 Indicates that the version or symbol is to be exposed in the APEX stubs rather 74 than the NDK. May be used in combination with `llndk` if the symbol is exposed 79 Indicates that the version or symbol is first introduced in the "future" API 92 individual symbol. If applied to a version, all symbols contained in the version 93 will have the tag applied. An `introduced` tag on a symbol overrides the value 119 symbol is defined with only architecture-specific tags, it will not be present [all …]
|
/build/soong/symbol_inject/cmd/ |
D | symbol_inject.go | 28 symbol = flag.String("s", "", "symbol to inject into") var 53 if *symbol == "" { 91 err = symbol_inject.InjectStringSymbol(file, w, *symbol, *value, *from)
|
/build/soong/cc/ndk_api_coverage_parser/ |
D | __init__.py | 81 for symbol in version.symbols: 82 if VARIABLE_TAG in symbol.tags: 84 attributes = {NAME_ATTRIBUTE_KEY: symbol.name} 87 attributes.update(parse_tags(symbol.tags))
|
/build/make/tools/ |
D | check_elf_file.py | 286 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
|
/build/make/tools/rbcrun/ |
D | README.md | 38 `"|symbol"` which defines a single variable `symbol` with `None` value if a 45 will load the module `mymodule.rbc` and export a symbol `init` in it as
|