pelfy/tests/test_example_elfs.py

14 lines
219 B
Python
Raw Normal View History

2025-02-22 18:53:39 +00:00
import pelfy
2025-02-24 22:28:02 +00:00
2025-02-23 22:13:21 +00:00
def test_simple_c():
2025-02-24 22:28:02 +00:00
elf = pelfy.open_elf_file('tests/obj/test3_o3.o')
2025-02-23 22:13:21 +00:00
print(elf.sections)
print(elf.symbols)
print(elf.code_relocations)
2025-02-24 22:28:02 +00:00
if __name__ == '__main__':
test_simple_c()