Home
last modified time | relevance | path

Searched refs:symbol (Results 1 – 14 of 14) 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/ndkstubgen/
D__init__.py52 for symbol in version.symbols:
53 if symbolfile.should_omit_symbol(symbol, self.arch, self.api,
57 if symbolfile.symbol_versioned_in_api(symbol.tags, self.api):
59 pruned_symbols.append(symbol)
65 for symbol in pruned_symbols:
67 symbol.tags, self.api)
69 self.version_script.write(' ' + symbol.name + ';\n')
72 if 'weak' in symbol.tags:
75 if 'var' in symbol.tags:
77 weak, symbol.name))
[all …]
/build/soong/cc/symbolfile/
D__init__.py148 def should_omit_symbol(symbol, arch, api, llndk, apex): argument
150 no_llndk_no_apex = 'llndk' not in symbol.tags and 'apex' not in symbol.tags
152 ('llndk' in symbol.tags and llndk) or \
153 ('apex' in symbol.tags and apex)
156 if not symbol_in_arch(symbol.tags, arch):
158 if not symbol_in_api(symbol.tags, arch, api):
303 for symbol in version.symbols:
304 if should_omit_symbol(symbol, self.arch, self.api, self.llndk,
308 if symbol.name in symbol_names:
309 multiply_defined_symbols.add(symbol.name)
[all …]
Dtest_symbolfile.py378 symbol = parser.parse_symbol()
379 self.assertEqual('foo', symbol.name)
380 self.assertEqual([], symbol.tags)
383 symbol = parser.parse_symbol()
384 self.assertEqual('bar', symbol.name)
385 self.assertEqual(['baz', 'qux'], symbol.tags)
/build/soong/docs/
Dmap_files.md32 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.
66 Comments on the same line as a version definition or a symbol name are
72 Indicates that the version or symbol is to be exposed in the APEX stubs rather
73 than the NDK. May be used in combination with `llndk` if the symbol is exposed
78 Indicates that the version or symbol is first introduced in the "future" API
87 individual symbol. If applied to a version, all symbols contained in the version
88 will have the tag applied. An `introduced` tag on a symbol overrides the value
112 symbol is defined with only architecture-specific tags, it will not be present
[all …]
/build/soong/cc/ndk_api_coverage_parser/
D__init__.py81 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/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