Skip to content

Commit 19deab4

Browse files
committed
esp32c2: rom: use puts from system libc
ROM call is causing reentrant null pointer. As a workaround, use provided libc version. Signed-off-by: Sylvio Alves <[email protected]>
1 parent 0b5a9cf commit 19deab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/esp_rom/esp32c2/ld/esp32c2.rom.newlib.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ _wctomb_r = 0x4000064c;
122122
__ascii_wctomb = 0x40000650;
123123
_mbtowc_r = 0x40000654;
124124
__ascii_mbtowc = 0x40000658;
125-
puts = 0x4000065c;
126125
putc = 0x40000660;
127126
putchar = 0x40000664;
128127
nan = 0x40000668;
@@ -133,6 +132,7 @@ syscall_table_ptr = 0x3fcdffd8;
133132
_global_impure_ptr = 0x3fcdffd4;
134133

135134
/* ZEPHYR: Keep PROVIDE for these symbols: */
135+
PROVIDE ( puts = 0x4000065c );
136136
PROVIDE ( strdup = 0x40000510 );
137137
PROVIDE ( strndup = 0x40000534 );
138138
PROVIDE ( rand = 0x40000570 );

0 commit comments

Comments
 (0)