2023-12-09 00:11:33 +00:00
|
|
|
import oelf
|
2023-12-08 15:41:25 +00:00
|
|
|
|
2023-12-09 18:18:26 +00:00
|
|
|
g = oelf.Object("target/debug/liboelf.dylib")
|
|
|
|
print(f"{g.header=}")
|
|
|
|
print(f"{g.name=}")
|
2023-12-08 15:41:25 +00:00
|
|
|
|
|
|
|
print("symbols")
|
2023-12-09 18:18:26 +00:00
|
|
|
for symbol in g.symbols():
|
|
|
|
print(symbol)
|
2023-12-08 15:41:25 +00:00
|
|
|
|
|
|
|
print("libs")
|
|
|
|
print(g.libs)
|
|
|
|
|
|
|
|
print("rpaths")
|
|
|
|
print(g.rpaths)
|
|
|
|
|
|
|
|
print("exports")
|
2023-12-09 18:18:26 +00:00
|
|
|
for export in g.exports():
|
|
|
|
print(export)
|
2023-12-08 15:41:25 +00:00
|
|
|
|
|
|
|
print("imports")
|
2023-12-09 18:18:26 +00:00
|
|
|
for imp in g.imports():
|
|
|
|
print(imp)
|
2023-12-08 16:28:36 +00:00
|
|
|
|
|
|
|
print("sections")
|
2023-12-09 18:18:26 +00:00
|
|
|
for section in g.sections():
|
|
|
|
print(f"{section}")
|