aboutsummaryrefslogtreecommitdiffstats
path: root/src/arch/riscv/Makefile.sbi
blob: dee1b6e5d262036f6152bedb1d4c06854a8ce651 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# -*- makefile -*- : Force emacs to use Makefile mode

# Build a position-independent executable, with relocations required
# only for data values.  Runtime relocations are applied by the
# prefix code.
#
CFLAGS		+= -mcmodel=medany -fpie
LDFLAGS		+= -pie --no-dynamic-linker

# Linker script
#
LDSCRIPT	= arch/riscv/scripts/sbi.lds

# Media types
#
MEDIA		+= sbi