2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-28 20:53:35 +08:00

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

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)}) \