ldso: Fix RISC-V support with 21.05 tool chain

- force inlining of more functions
- force -O2 for RISC-V (even if -O0 is set globally)
- intialize cxx guard after self relocation

issue #4094
This commit is contained in:
Sebastian Sumpf
2021-05-07 12:54:45 +02:00
committed by Christian Helmuth
parent a6fe6c90d4
commit fd9bc43be1
3 changed files with 13 additions and 7 deletions

View File

@@ -1,3 +1,9 @@
#
# Force to build -O2 on RISC-V in order to get proper inlining during self
# relocation
#
override CC_OLEVEL = -O2
include $(BASE_DIR)/lib/mk/ld-platform.inc
INC_DIR += $(DIR)/spec/riscv