Skip to content

Commit

Permalink
Move __PRETTY_FUNCTION__ to progmem (esp8266#5758)
Browse files Browse the repository at this point in the history
Match __FUNCTION__ linking, keep C++ function names out of rodata/heap.
  • Loading branch information
earlephilhower authored Feb 13, 2019
1 parent 6c5269a commit c9ce966
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/sdk/ld/eagle.app.v6.common.ld.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ SECTIONS

/* __FUNCTION__ locals */
*(.rodata._ZZ*__FUNCTION__)
*(.rodata._ZZ*__PRETTY_FUNCTION__)
*(.rodata._ZZ*__func__)

/* std::* exception strings, in their own section to allow string coalescing */
*(.irom.exceptiontext)
Expand Down

0 comments on commit c9ce966

Please sign in to comment.