mirror of
https://github.com/tiann/KernelSU.git
synced 2025-02-20 11:43:32 +08:00
11 lines
264 B
Python
11 lines
264 B
Python
from xml.dom.minidom import parse
|
|
import xml.dom.minidom
|
|
import sys
|
|
|
|
|
|
DOMTree = xml.dom.minidom.parse(sys.argv[1])
|
|
symbols = DOMTree.getElementsByTagName("elf-symbol")
|
|
print("[abi_symbol_list]")
|
|
for symbol in symbols:
|
|
print(" " + symbol.getAttribute("name"))
|