From 489ef84549ca878833eb16a827b68bb83d768b06 Mon Sep 17 00:00:00 2001 From: the-m3chanic Date: Wed, 3 Jul 2024 02:43:48 +0530 Subject: [PATCH] aarch64: modified linkcmds.base to add new section for GDB pretty-printing --- bsps/aarch64/shared/start/linkcmds.base | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bsps/aarch64/shared/start/linkcmds.base b/bsps/aarch64/shared/start/linkcmds.base index d442dbea28..7d259594a9 100644 --- a/bsps/aarch64/shared/start/linkcmds.base +++ b/bsps/aarch64/shared/start/linkcmds.base @@ -425,6 +425,10 @@ SECTIONS { .debug_sup 0 : { *(.debug_sup) } .ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) } .note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) } + + /* Addition to let linker know about custom section for GDB pretty-printing support. */ + .debug_gdb_scripts 0 : { *(.debug_gdb_scripts) } + /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) } /*