Xtensa - Linker error when linking a freertos demo program
Original Reporter info from Mantis: ccrause @ccrause
-
Reporter name: Christo Crause
Original Reporter info from Mantis: ccrause @ccrause
- Reporter name: Christo Crause
Description:
When linking a wifi example program using ESP-IDF libraries the linker generates an error:
/fpc/avr-new/rtl/units/xtensa-freertos/system.o: in function `SYSTEM_$$_SYSTEM_EXIT':
system.pp:(.text.n_SYSTEM_$$_SYSTEM_EXIT+0x0): dangerous relocation: j: cannot encode: _haltproc
Compiling and linking simpler examples work, so I suspect that the range between the jump instruction and the _haltproc address exceeds about 131070 bytes. In the general case it seems safer to rather generate a J.L macro so that the linker can decide whether J or JX can be used. The downside is of course that an extra register needs to be passed to J.L.
Mantis conversion info:
- Mantis ID: 36931
- Build: 44776
- Version: 3.3.1