Lines Matching refs:sym
22 def __init__(self, elf, sym): argument
24 self.sym = sym
25 self.data = self.elf.symbol_data(sym)
28 return self.sym.entry.st_value < other.sym.entry.st_value
43 def __init__(self, elf, sym): argument
44 super().__init__(elf, sym)
59 def __init__(self, elf, sym): argument
60 super().__init__(elf, sym)
91 def __init__(self, elf, sym): argument
92 super().__init__(elf, sym)
153 def symbol_data(self, sym): argument
158 addr = sym.entry.st_value
159 length = sym.entry.st_size
161 section = self.elf.get_section(sym.entry['st_shndx'])
174 for sym in section.iter_symbols():
175 if sym.name in names:
176 symbols[sym.name] = sym.entry.st_value
182 for sym in section.iter_symbols():
183 if sym.entry.st_info.type != 'STT_OBJECT':
185 if sym.name.startswith(prefix):
186 cb(sym)
229 def _on_pm(sym): argument
230 pm_structs[sym.entry.st_value] = DevicePM(self, sym)
235 def _on_ordinal(sym): argument
236 ordinal_arrays[sym.entry.st_value] = DeviceOrdinals(self, sym)
240 def _on_device(sym): argument
241 self.devices.append(Device(self, sym))
278 text = '{:s}\\nHandle: {:d}'.format(dev.sym.name, dev.handle)