Files
sw_openocd/contrib/loaders/flash/hpmicro/linker.ld
Ryan QIAN 8e11797618 contrib/loaders/flash/hpmicro: add hpmicro device xpi support
- add xpi flash support for hpmicro devices

Change-Id: I3531fdf20a34561c6f3fe6ac0b9af988d483aae7
Signed-off-by: Ryan QIAN <jianghao.qian@hpmicro.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8695
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
2025-12-19 21:16:27 +00:00

49 lines
1005 B
Plaintext

/* SPDX-License-Identifier: BSD-3-Clause */
/*
* Copyright (c) 2021 HPMicro
*/
ENTRY(_init)
SECTIONS
{
.text : {
*(.func_table)
KEEP(*(.flash_algo.text*))
KEEP(*(.rodata))
KEEP(*(.rodata*))
KEEP(*(.flash_algo.data*))
*(.text)
*(.text*)
__etext = .;
}
.discard : {
__noncacheable_start__ = .;
__noncacheable_bss_start__ = .;
__bss_start__ = .;
__bss_end__ = .;
__noncacheable_bss_end__ = .;
_end = .;
__noncacheable_init_start__ = .;
__data_start__ = .;
__data_end__ = .;
__noncacheable_init_end__ = .;
__noncacheable_end__ = .;
__heap_start__ = .;
__heap_end__ = .;
__ramfunc_start__ = .;
__ramfunc_end__ = .;
__noncacheable_bss_start__ = .;
__noncacheable_bss_end__ = .;
__noncacheable_init_start__ = .;
__noncacheable_init_end__ = .;
__tdata_start__ = .;
__tdata_end__ = .;
__tbss_start__ = .;
__tbss_end__ = .;
__data_load_addr__ = .;
__fast_load_addr__ = .;
__tdata_load_addr__ = .;
__noncacheable_init_load_addr__ = .;
}
}