Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

where is right place to put -mlongcalls? #720

Closed
kiralikbeyin opened this issue Jun 6, 2019 · 0 comments
Closed

where is right place to put -mlongcalls? #720

kiralikbeyin opened this issue Jun 6, 2019 · 0 comments

Comments

@kiralikbeyin
Copy link

kiralikbeyin commented Jun 6, 2019

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?

#674

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant