From 3bfd372c20d43def2dbc538b35a81ea38703e77e Mon Sep 17 00:00:00 2001 From: pca006132 Date: Thu, 6 Aug 2020 16:07:28 +0800 Subject: [PATCH] compiler: linker discard local symbols. Fixes exception backtrace problem for ARM. --- artiq/compiler/targets.py | 1 + 1 file changed, 1 insertion(+) diff --git a/artiq/compiler/targets.py b/artiq/compiler/targets.py index 9b985c32e..9ebc7907d 100644 --- a/artiq/compiler/targets.py +++ b/artiq/compiler/targets.py @@ -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)}) \