diff options
Diffstat (limited to 'src/arch/riscv/Makefile.sbi')
-rw-r--r-- | src/arch/riscv/Makefile.sbi | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/arch/riscv/Makefile.sbi b/src/arch/riscv/Makefile.sbi new file mode 100644 index 000000000..dee1b6e5d --- /dev/null +++ b/src/arch/riscv/Makefile.sbi @@ -0,0 +1,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 |