From 79d5f22b5a8158c9116ccbc645c35a9ceaa6589e Mon Sep 17 00:00:00 2001 From: the-m3chanic Date: Tue, 9 Jul 2024 00:15:12 +0530 Subject: [PATCH] lm32: modified linker scripts for gdb-inlined script support --- bsps/lm32/lm32_evr/start/linkcmds | 3 +++ bsps/lm32/milkymist/start/linkcmds | 3 +++ 2 files changed, 6 insertions(+) diff --git a/bsps/lm32/lm32_evr/start/linkcmds b/bsps/lm32/lm32_evr/start/linkcmds index 49e11bac79..bd010aab7c 100644 --- a/bsps/lm32/lm32_evr/start/linkcmds +++ b/bsps/lm32/lm32_evr/start/linkcmds @@ -307,4 +307,7 @@ SECTIONS .debug_typenames 0 : { *(.debug_typenames) } .debug_varnames 0 : { *(.debug_varnames) } /* These must appear regardless of . */ + + /* Addition to let linker know about custom section for GDB pretty-printing support. */ + .debug_gdb_scripts 0 : { *(.debug_gdb_scripts) } } diff --git a/bsps/lm32/milkymist/start/linkcmds b/bsps/lm32/milkymist/start/linkcmds index fde44adce1..a19082f304 100644 --- a/bsps/lm32/milkymist/start/linkcmds +++ b/bsps/lm32/milkymist/start/linkcmds @@ -305,4 +305,7 @@ SECTIONS .debug_typenames 0 : { *(.debug_typenames) } .debug_varnames 0 : { *(.debug_varnames) } /* These must appear regardless of . */ + + /* Addition to let linker know about custom section for GDB pretty-printing support. */ + .debug_gdb_scripts 0 : { *(.debug_gdb_scripts) } }