diff options
author | 2017-06-03 20:21:40 -0500 | |
---|---|---|
committer | 2017-06-03 20:21:40 -0500 | |
commit | d9440775f32ffec660d01059a0403f2eeba69ea7 (patch) | |
tree | 978ad942185095d45f36dac1de4509c2537a83c0 | |
parent | f5f9afb3e1cf355bda02f765454a6de35e1c3d75 (diff) | |
download | cortex-m-d9440775f32ffec660d01059a0403f2eeba69ea7.tar.gz cortex-m-d9440775f32ffec660d01059a0403f2eeba69ea7.tar.zst cortex-m-d9440775f32ffec660d01059a0403f2eeba69ea7.zip |
linker-script: add support for the stlog logging framework
-rw-r--r-- | cortex-m-rt/link.x | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cortex-m-rt/link.x b/cortex-m-rt/link.x index 9c9d247..e6c90fa 100644 --- a/cortex-m-rt/link.x +++ b/cortex-m-rt/link.x @@ -63,6 +63,28 @@ SECTIONS KEEP(*(.debug_gdb_scripts)) } + .stlog 0 (INFO) : { + _sstlog_trace = .; + *(.stlog.trace*); + _estlog_trace = .; + + _sstlog_debug = .; + *(.stlog.debug*); + _estlog_debug = .; + + _sstlog_info = .; + *(.stlog.info*); + _estlog_info = .; + + _sstlog_warn = .; + *(.stlog.warn*); + _estlog_warn = .; + + _sstlog_error = .; + *(.stlog.error*); + _estlog_error = .; + } + /DISCARD/ : { /* Unused unwinding stuff */ |