Skip to content

Commit d944077

Browse files
committed
linker-script: add support for the stlog logging framework
1 parent f5f9afb commit d944077

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

cortex-m-rt/link.x

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,28 @@ SECTIONS
6363
KEEP(*(.debug_gdb_scripts))
6464
}
6565

66+
.stlog 0 (INFO) : {
67+
_sstlog_trace = .;
68+
*(.stlog.trace*);
69+
_estlog_trace = .;
70+
71+
_sstlog_debug = .;
72+
*(.stlog.debug*);
73+
_estlog_debug = .;
74+
75+
_sstlog_info = .;
76+
*(.stlog.info*);
77+
_estlog_info = .;
78+
79+
_sstlog_warn = .;
80+
*(.stlog.warn*);
81+
_estlog_warn = .;
82+
83+
_sstlog_error = .;
84+
*(.stlog.error*);
85+
_estlog_error = .;
86+
}
87+
6688
/DISCARD/ :
6789
{
6890
/* Unused unwinding stuff */

0 commit comments

Comments
 (0)