core/nds32: Format linker script
This is a cleanup/reformat of the linker script.
This brings no functional change.
BRANCH=none
TEST=make buildall
OUTPUT_FORMAT(BFD_FORMAT, BFD_FORMAT, BFD_FORMAT)
OUTPUT_ARCH(BFD_ARCH)
ENTRY(reset)
+
MEMORY
{
FLASH (rx) : ORIGIN = FW_OFF(SECTION), LENGTH = FW_SIZE(SECTION)
@@ -25,11 +26,13 @@ MEMORY
H2RAM (rw) : ORIGIN = CONFIG_H2RAM_BASE, LENGTH = CONFIG_H2RAM_SIZE
#endif
}
+
SECTIONS
{
.text : {
- /* We put "__flash_dma_start" at the beginning of the text section
- * to avoid gap.
+ /*
+ * We put "__flash_dma_start" at the beginning of
+ * the text section to avoid gap.
*/
__flash_dma_start = .;
ASSERT((__flash_dma_start == 0),
@@ -177,6 +180,7 @@ SECTIONS
#endif
. = ALIGN(4);
} >FLASH
+
__data_lma_start = . ;
.data : {
@@ -215,9 +219,9 @@ SECTIONS
*(.bss.slow)
/*
- * Reserve space for deferred function firing times. Each time is a
- * uint64_t, each func is a 32-bit pointer, thus the scaling factor of
- * two.
+ * Reserve space for deferred function firing times.
+ * Each time is a uint64_t, each func is a 32-bit pointer,
+ * thus the scaling factor of two.
*/
. = ALIGN(8);
__deferred_until = .;
@@ -227,8 +231,10 @@ SECTIONS
. = ALIGN(4);
__bss_end = .;
- /* Shared memory buffer must be at the end of preallocated RAM, so it
- * can expand to use all the remaining RAM. */
+ /*
+ * Shared memory buffer must be at the end of preallocated RAM,
+ * so it can expand to use all the remaining RAM.
+ */
__shared_mem_buf = .;
} > IRAM
@@ -259,9 +265,7 @@ SECTIONS
#endif
#if !(defined(SECTION_IS_RO) && defined(CONFIG_FLASH))
- /DISCARD/ : {
- *(.google)
- }
+ /DISCARD/ : { *(.google) }
#endif
/DISCARD/ : { *(.ARM.*) }
