Skip to content

Commit d8ff31d

Browse files
committed
updated .ld for pretty strings & fix reused attr warning
1 parent 280a369 commit d8ff31d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

cores/esp8266/libc_replacements.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ int IRAM_ATTR _write_r(struct _reent* r, int file, char *ptr, int len) {
9797

9898
int IRAM_ATTR _putc_r(struct _reent* r, int c, FILE* file) __attribute__((weak));
9999

100-
int IRAM_ATTR _putc_r(struct _reent* r, int c, FILE* file) {
100+
int _putc_r(struct _reent* r, int c, FILE* file) {
101101
(void) r;
102102
if (file->_file == STDOUT_FILENO) {
103103
ets_putc(c);

tools/sdk/ld/eagle.app.v6.common.ld.h

+7
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,13 @@ SECTIONS
247247
*(.rodata._ZZ*__PRETTY_FUNCTION__)
248248
*(.rodata._ZZ*__func__)
249249

250+
/* __FUNCTION__ global statics */
251+
*(.rodata.*__builtin_FILEstr*)
252+
*(.rodata.*__builtin_FUNCTIONstr*)
253+
*(.rodata.*__func__str*)
254+
*(.rodata.*__FUNCTION__str*)
255+
*(.rodata.*__PRETTY_FUNCTION__str*)
256+
250257
/* std::* exception strings, in their own section to allow string coalescing */
251258
*(.irom.exceptiontext .rodata.exceptiontext)
252259
*(.rodata.*__exception_what__*) /* G++ seems to throw out templatized section attributes */

0 commit comments

Comments
 (0)