Skip to content

Commit

Permalink
Thanks Marcelo Arroyo
Browse files Browse the repository at this point in the history
  • Loading branch information
kaashoek committed Jul 26, 2024
1 parent 969f03d commit 2714279
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ CFLAGS = -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2
CFLAGS += -MD
CFLAGS += -mcmodel=medany
# CFLAGS += -ffreestanding -fno-common -nostdlib -mno-relax
CFLAGS += -fno-common -nostdlib -mno-relax
CFLAGS += -fno-common -nostdlib
CFLAGS += -fno-builtin-strncpy -fno-builtin-strncmp -fno-builtin-strlen -fno-builtin-memset
CFLAGS += -fno-builtin-memmove -fno-builtin-memcmp -fno-builtin-log -fno-builtin-bzero
CFLAGS += -fno-builtin-strchr -fno-builtin-exit -fno-builtin-malloc -fno-builtin-putc
Expand Down
2 changes: 1 addition & 1 deletion user/ulib.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// wrapper so that it's OK if main() does not call exit().
//
void
_main()
start()
{
extern int main();
main();
Expand Down
2 changes: 0 additions & 2 deletions user/user.ld
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
OUTPUT_ARCH( "riscv" )
ENTRY( _main )


SECTIONS
{
Expand Down

0 comments on commit 2714279

Please sign in to comment.