SuperHouse / esp-open-rtos

Open source FreeRTOS-based ESP8266 software framework
BSD 3-Clause "New" or "Revised" License
1.52k stars 491 forks source link

where is right place to put -mlongcalls? #720

Closed kiralikbeyin closed 5 years ago

kiralikbeyin commented 5 years ago

I added to parameters.mk

CXXFLAGS    += -mlongcalls
CFLAGS += -mlongcalls
C_CXX_FLAGS += -mlongcalls

also added to makefile

...
EXTRA_CFLAGS +=   -mlongcalls -mtext-section-literals
include $(abspath ../../sdk/esp-open-rtos/common.mk)
...

but still getting

./build/sdklib/libnet80211.a(wl_cnx.o): In function `sdk_cnx_add_rc':
(.irom0.text+0xc6a): dangerous relocation: call0: call target out of range: sdk_cnx_remove_rc
./build/sdklib/libnet80211.a(wl_cnx.o): In function `sdk_cnx_update_bss':
(.irom0.text+0xf30): dangerous relocation: call0: call target out of range: sdk_cnx_remove_rc
./build/sdklib/libnet80211.a(wl_cnx.o): In function `sdk_cnx_sta_leave':
(.irom0.text+0x11db): dangerous relocation: call0: call target out of range: sdk_cnx_node_remove
./build/sdklib/libwpa.a(wpa_main.o): In function `sdk_eagle_auth_done':
(.irom0.text+0x295): dangerous relocation: call0: call target out of range: sdk_eagle_auth_done
collect2: error: ld returned 1 exit status

where is right place to put -mlongcalls?

https://github.com/SuperHouse/esp-open-rtos/issues/674