Skip to content

Commit

Permalink
Fix symbol generation for shared objects (#364)
Browse files Browse the repository at this point in the history
* improve symbol generation

* fix shared object naming
  • Loading branch information
egecetin authored Dec 29, 2024
1 parent 52e8125 commit 0dc3684
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/dump_syms.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,12 @@
symFile = open(outFilePath, "r")
firstLine = symFile.readline().split(" ")

symbolsDir = (
outputDir + "/" + os.path.basename(binaryPath) + "/" + firstLine[-2] + "/"
)
symbolsDir = outputDir + "/" + firstLine[-1].strip() + "/" + firstLine[-2] + "/"

try:
os.makedirs(symbolsDir)
except OSError as exception:
if exception.errno != errno.EEXIST:
raise
os.rename(outFilePath, symbolsDir + os.path.basename(binaryPath) + ".sym")
os.rename(outFilePath, symbolsDir + firstLine[-1].strip() + ".sym")
os.system(f"strip {binaryPath}")

0 comments on commit 0dc3684

Please sign in to comment.