Skip to content

Commit ef0c5db

Browse files
committed
esp8266: Move .rodata where it belongs with -mforce-l32 help.
1 parent 254a564 commit ef0c5db

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

esp8266/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ CFLAGS += -g
4848
COPT = -O0
4949
else
5050
CFLAGS += -fdata-sections -ffunction-sections
51-
COPT += -Os -DNDEBUG
51+
COPT += -Os -mforce-l32 -DNDEBUG
5252
LDFLAGS += --gc-sections
5353
endif
5454

esp8266/esp8266.ld

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ SECTIONS
155155
*/frozen.o(.rodata.mp_frozen_sizes) /* frozen modules */
156156
*/frozen.o(.rodata.mp_frozen_content) /* frozen modules */
157157

158+
/* for -mforce-l32 */
159+
build/*.o(.rodata*)
160+
158161
_irom0_text_end = ABSOLUTE(.);
159162
} >irom0_0_seg :irom0_0_phdr
160163

0 commit comments

Comments
 (0)