From 07b23ecbb1b1845bb166bc35368493a26ab8be82 Mon Sep 17 00:00:00 2001 From: Shell Date: Fri, 20 Oct 2023 13:27:38 +0800 Subject: [libcpu] fix symbol of kernel entry point (#8159) Signed-off-by: Shell --- libcpu/aarch64/SConscript | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libcpu/aarch64/SConscript') 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 -- cgit v1.3.1