2
0

riscv-opts.mk 433 B

123456789101112
  1. # Extra flags during tools build
  2. riscv_target_flags = -fvisibility=hidden \
  3. -fno-pic -Wa,-fno-pic -fno-PIE \
  4. -frename-registers -fshort-enums -fshort-wchar \
  5. -ffunction-sections -fdata-sections \
  6. -mshorten-memrefs -mstrict-align -fno-exceptions \
  7. -malign-data=natural
  8. # Additional flags during application build
  9. riscv_flags = $(riscv_target_flags) \
  10. -specs=nano.specs -Os -ggdb3 -fwrapv \
  11. -fno-strict-aliasing