esp8266: Move .rodata where it belongs with -mforce-l32 help.
This commit is contained in:
parent
254a5646c1
commit
ef0c5db2ed
@ -48,7 +48,7 @@ CFLAGS += -g
|
|||||||
COPT = -O0
|
COPT = -O0
|
||||||
else
|
else
|
||||||
CFLAGS += -fdata-sections -ffunction-sections
|
CFLAGS += -fdata-sections -ffunction-sections
|
||||||
COPT += -Os -DNDEBUG
|
COPT += -Os -mforce-l32 -DNDEBUG
|
||||||
LDFLAGS += --gc-sections
|
LDFLAGS += --gc-sections
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -155,6 +155,9 @@ SECTIONS
|
|||||||
*/frozen.o(.rodata.mp_frozen_sizes) /* frozen modules */
|
*/frozen.o(.rodata.mp_frozen_sizes) /* frozen modules */
|
||||||
*/frozen.o(.rodata.mp_frozen_content) /* frozen modules */
|
*/frozen.o(.rodata.mp_frozen_content) /* frozen modules */
|
||||||
|
|
||||||
|
/* for -mforce-l32 */
|
||||||
|
build/*.o(.rodata*)
|
||||||
|
|
||||||
_irom0_text_end = ABSOLUTE(.);
|
_irom0_text_end = ABSOLUTE(.);
|
||||||
} >irom0_0_seg :irom0_0_phdr
|
} >irom0_0_seg :irom0_0_phdr
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user