Skip to content

Commit 5ff49f2

Browse files
committed
[cheriot] Add linker flag -nostartfiles
This is to cope with the new version of llvm, caused by the fact that we call crt0.s boot.S. Signed-off-by: Douglas Reis <doreis@lowrisc.org>
1 parent 4a1da57 commit 5ff49f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sw/cheri/cheriot_toolchain.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ string(CONCAT CMAKE_C_FLAGS_INIT
4141

4242
set(CMAKE_ASM_FLAGS_INIT "-mcpu=cheriot -mabi=cheriot -mxcheri-rvc -mrelax -fshort-wchar")
4343

44-
set(CMAKE_EXE_LINKER_FLAGS_INIT "-nodefaultlibs -fuse-ld=lld -T \"${LINKER_SCRIPT}\"")
44+
set(CMAKE_EXE_LINKER_FLAGS_INIT "-nodefaultlibs -nostartfiles -fuse-ld=lld -T \"${LINKER_SCRIPT}\"")

0 commit comments

Comments
 (0)