Skip to content

Commit 97095c6

Browse files
tagunilkartben
authored andcommitted
linker: arc: add ARC-specific debug sections
ARC architecture has some additional .arcextmap debug sections used by debuggers to understand extension-specific instructions. These sections could safely be ignored, but doing this causes warnings at least with ARC MWDT toolchain. Signed-off-by: Ilya Tagunov <[email protected]>
1 parent ab8c035 commit 97095c6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

include/zephyr/arch/arc/v2/linker.ld

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,16 @@ SECTIONS {
291291

292292
#include <zephyr/linker/ram-end.ld>
293293

294-
GROUP_END(RAMABLE_REGION)
294+
GROUP_END(RAMABLE_REGION)
295295

296296
#include <zephyr/linker/debug-sections.ld>
297297

298+
SECTION_PROLOGUE(.arcextmap, 0,) {
299+
*(.arcextmap)
300+
*(.arcextmap.*)
301+
*(.gnu.linkonce.arcextmap.*)
302+
}
303+
298304
SECTION_PROLOGUE(.ARC.attributes, 0,) {
299305
KEEP(*(.ARC.attributes))
300306
KEEP(*(.gnu.attributes))

0 commit comments

Comments
 (0)