Skip to content

Commit 06b1a5d

Browse files
resistormarnovandermaas
authored andcommitted
Pass -nostartfiles when building boot stubs.
Per GCC's documentation, when -nodefaultlibs is passed, "The standard startup files are used normally, unless -nostartfiles is used."
1 parent 6cd0c7f commit 06b1a5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sw/cheri/sim_boot_stub/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
33
# SPDX-License-Identifier: Apache-2.0
44
CFLAGS=-target riscv32-unknown-unknown -mcpu=cheriot -mabi=cheriot \
5-
-mxcheri-rvc -mrelax -fshort-wchar -nodefaultlibs
5+
-mxcheri-rvc -mrelax -fshort-wchar -nodefaultlibs -nostartfiles
66

77
all: sim_boot_stub sim_sram_boot_stub
88

0 commit comments

Comments
 (0)