forked from M-Labs/artiq
compiler: linker discard local symbols.
Fixes exception backtrace problem for ARM.
This commit is contained in:
parent
e3c5775584
commit
3bfd372c20
|
@ -183,6 +183,7 @@ class Target:
|
||||||
"""Link the relocatable objects into a shared library for this target."""
|
"""Link the relocatable objects into a shared library for this target."""
|
||||||
with RunTool([self.tool_ld, "-shared", "--eh-frame-hdr"] +
|
with RunTool([self.tool_ld, "-shared", "--eh-frame-hdr"] +
|
||||||
["{{obj{}}}".format(index) for index in range(len(objects))] +
|
["{{obj{}}}".format(index) for index in range(len(objects))] +
|
||||||
|
["-x"] +
|
||||||
["-o", "{output}"],
|
["-o", "{output}"],
|
||||||
output=None,
|
output=None,
|
||||||
**{"obj{}".format(index): obj for index, obj in enumerate(objects)}) \
|
**{"obj{}".format(index): obj for index, obj in enumerate(objects)}) \
|
||||||
|
|
Loading…
Reference in New Issue