summaryrefslogtreecommitdiffstats
path: root/riscv-opts.mk
blob: f016ac75c35650d24eebe6100e64aaf6e049dff7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Extra flags during tools build
riscv_target_flags =	-fvisibility=hidden \
			-fno-pic -Wa,-fno-pic -fno-PIE \
			-frename-registers -fshort-enums -fshort-wchar \
			-ffunction-sections -fdata-sections \
			-mshorten-memrefs -mstrict-align -fno-exceptions \
			-malign-data=natural \
			-falign-functions=4

# Additional flags during application build
riscv_flags = $(riscv_target_flags) \
			 -specs=nano.specs -Os -ggdb3 -gdwarf -fwrapv \
			-fno-strict-aliasing