summaryrefslogtreecommitdiff
path: root/libcpu/aarch64/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'libcpu/aarch64/SConscript')
-rw-r--r--libcpu/aarch64/SConscript2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcpu/aarch64/SConscript b/libcpu/aarch64/SConscript
index d726d2d1f2..52de02a27b 100644
--- a/libcpu/aarch64/SConscript
+++ b/libcpu/aarch64/SConscript
@@ -12,6 +12,8 @@ bsp_path = Dir('#').abspath
if not os.path.exists(bsp_path + "/link.lds"):
Env['LINKFLAGS'] = Env['LINKFLAGS'].replace('link.lds', cwd + "/link.lds")
+ # fix the linker with crtx.o
+ Env['LINKFLAGS'] += ' -nostartfiles'
Preprocessing("link.lds.S", ".lds", CPPPATH=[bsp_path])
# add common code files