2
0

riscv-opts.mk 466 B

12345678910111213
  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. -falign-functions=4
  9. # Additional flags during application build
  10. riscv_flags = $(riscv_target_flags) \
  11. -specs=nano.specs -Os -ggdb3 -gdwarf -fwrapv \
  12. -fno-strict-aliasing