aboutsummaryrefslogtreecommitdiffstats
path: root/usr/klibc/arch/riscv64/MCONFIG
blob: 340610861c9e50817e6af35184caf70e3d721327 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# -*- makefile -*-
#
# arch/riscv64/MCONFIG
#
# Special rules for this architecture.  Note that this is actually
# included from the main Makefile, and that pathnames should be
# accordingly.
#

KLIBCOPTFLAGS	  += -Os -fomit-frame-pointer
ifeq ($(DEBUG),y)
KLIBCOPTFLAGS     += -g
endif
KLIBCBITSIZE      = 64

# Normal binaries start at 64 KB, so start the libary at 2 MB.
KLIBCSHAREDFLAGS  = $(LD_IMAGE_BASE_OPT) 0x00200000
KLIBCSHAREDFLAGS  += --defsym '__global_pointer$$=0'

# Kernel has never used stack trampolines
KLIBCEXECSTACK := n

KLIBCEMAIN        := -e _main
KLIBCCRTSHARED    += $(KLIBCOBJ)/arch/riscv64/_main.o