Simplify firmware image generation and preserve original sections

This commit is contained in:
Philippe Teuwen committed 2022-02-17 01:43:41 +01:00
1 parent e17ff8260f
commit 359ca554c0
2 files changed
+4 -19

No files matched your search

+2 -5
View File
@@ -24,7 +24,6 @@ SECTIONS
} >osimage :text
.text : {
KEEP(*(stage1_image))
*(.text)
*(.text.*)
*(.eh_frame)
@@ -36,12 +35,10 @@ SECTIONS
*(.rodata)
*(.rodata.*)
*(fpga_all_bit.data)
KEEP(*(.version_information))
. = ALIGN(8);
} >osimage :text
.data : {
KEEP(*(compressed_data))
*(.data)
*(.data.*)
*(.ramfunc)
@@ -52,9 +49,9 @@ SECTIONS
__data_start__ = ADDR(.data);
__data_end__ = __data_start__ + SIZEOF(.data);
__os_size__ = SIZEOF(.text) + SIZEOF(.data) + SIZEOF(.rodata);
.bss : {
__bss_start__ = .;
__bss_start__ = .;
*(.bss)
*(.bss.*)
. = ALIGN(4);