diff --git a/overlays/xtensa_mtk_mt818x_adsp/gdb/gdb/xtensa-config.c b/overlays/xtensa_mtk_mt818x_adsp/gdb/gdb/xtensa-config.c index beaf6464..a1b9c8a6 100644 --- a/overlays/xtensa_mtk_mt818x_adsp/gdb/gdb/xtensa-config.c +++ b/overlays/xtensa_mtk_mt818x_adsp/gdb/gdb/xtensa-config.c @@ -555,7 +555,7 @@ xtensa_register_t rmap[] = XTREG_END }; - +extern xtensa_register_t xtensa_rmap[] __attribute__((alias("rmap"))); #ifdef XTENSA_CONFIG_INSTANTIATE XTENSA_CONFIG_INSTANTIATE(rmap,16) diff --git a/overlays/xtensa_mtk_mt8195_adsp/gdb/gdb/xtensa-config.c b/overlays/xtensa_mtk_mt8195_adsp/gdb/gdb/xtensa-config.c index 9d106c9f..bc3e8d88 100644 --- a/overlays/xtensa_mtk_mt8195_adsp/gdb/gdb/xtensa-config.c +++ b/overlays/xtensa_mtk_mt8195_adsp/gdb/gdb/xtensa-config.c @@ -496,4 +496,6 @@ static xtensa_register_t rmap[] = XTREG_END }; +extern xtensa_register_t xtensa_rmap[] __attribute__((alias("rmap"))); + xtensa_gdbarch_tdep xtensa_tdep (rmap); diff --git a/overlays/xtensa_mtk_mt8196_adsp/gdb/gdb/xtensa-config.c b/overlays/xtensa_mtk_mt8196_adsp/gdb/gdb/xtensa-config.c index 464661f2..23c96ee0 100644 --- a/overlays/xtensa_mtk_mt8196_adsp/gdb/gdb/xtensa-config.c +++ b/overlays/xtensa_mtk_mt8196_adsp/gdb/gdb/xtensa-config.c @@ -555,7 +555,7 @@ xtensa_register_t rmap[] = XTREG_END }; - +extern xtensa_register_t xtensa_rmap[] __attribute__((alias("rmap"))); #ifdef XTENSA_CONFIG_INSTANTIATE XTENSA_CONFIG_INSTANTIATE(rmap,16)