arc: move openocd_dbg section

Its current placement was splitting the vector table in half.
Move to rodata, a better place for it. There's no requirement for
it to be in the text section.

Change-Id: I67724b2a26a9cb62c2ccd473cb54c53e4f74dc32
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2017-02-13 15:40:08 -08:00 committed by Anas Nashif
commit 587ba7b8ea

View file

@ -70,10 +70,6 @@ SECTIONS {
KEEP(*(.exc_vector_table))
KEEP(*(".exc_vector_table.*"))
KEEP(*(.openocd_dbg))
KEEP(*(".openocd_dbg.*"))
KEEP(*(IRQ_VECTOR_TABLE))
KEEP(*(.isr_irq*))
@ -105,6 +101,8 @@ SECTIONS {
#include <linker/common-rom.ld>
SECTION_PROLOGUE(_RODATA_SECTION_NAME,,) {
KEEP(*(.openocd_dbg))
KEEP(*(".openocd_dbg.*"))
*(.rodata)
*(".rodata.*")
*(.gnu.linkonce.r.*)