forked from M-Labs/artiq
1
0
Fork 0

compiler: linker discard local symbols.

Fixes exception backtrace problem for ARM.
This commit is contained in:
pca006132 2020-08-06 16:07:28 +08:00
parent e3c5775584
commit 3bfd372c20
1 changed files with 1 additions and 0 deletions

View File

@ -183,6 +183,7 @@ class Target:
"""Link the relocatable objects into a shared library for this target."""
with RunTool([self.tool_ld, "-shared", "--eh-frame-hdr"] +
["{{obj{}}}".format(index) for index in range(len(objects))] +
["-x"] +
["-o", "{output}"],
output=None,
**{"obj{}".format(index): obj for index, obj in enumerate(objects)}) \