blob: 34f077414f8c7ca2e96eee33e53b5a24de6ec364 [file] [log] [blame]
# -*- 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.
#
# We should get klibc.so and the executables to agree on what gp
# should be. For now, disable gp-relative addressing.
KLIBCLDFLAGS = --no-relax
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 =-Ttext 0x00200200