MCPcopy Index your code
hub / github.com/cirosantilli/linux-kernel-module-cheat / get_elf_entry

Method get_elf_entry

common.py:702–713  ·  view source on GitHub ↗
(self, elf_file_path)

Source from the content-addressed store, hash-verified

700 return base64.b64encode(string.encode()).decode()
701
702 def get_elf_entry(self, elf_file_path):
703 readelf_header = subprocess.check_output([
704 self.get_toolchain_tool('readelf'),
705 '-h',
706 elf_file_path
707 ])
708 for line in readelf_header.decode().split('\n'):
709 split = line.split()
710 if line.startswith(' Entry point address:'):
711 addr = line.split()[-1]
712 break
713 return int(addr, 0)
714
715 def gem5_list_checkpoint_dirs(self):
716 '''

Callers

nothing calls this directly

Calls 1

get_toolchain_toolMethod · 0.95

Tested by

no test coverage detected