kvx: remove duplicated dtb symbols
PATCH 1/1 kvx: remove duplicated dtb symbols
dtb symbols (__dtb_start, __dtb_end) are already defined using RO_DATA_SECTION. This duplicated dtb section is a leftover used by Kalray internal tools to patch the dtb when loading the elf on a target. Remove it to keep only one symbol definition.
Signed-off-by Clement Leger <[email protected]>
--- arch/kvx/cpu/barebox.lds.S | 9 --------- 1 file changed, 9 deletions(-)
arch/kvx/cpu/barebox.lds.S +0 -9
@@ -10,8 +10,6 @@ OUTPUT_FORMAT("elf64-kvx") OUTPUT_ARCH("kvx:kv3-1:64") -#define DTB_DEFAULT_SIZE (24 * 1024) - SECTIONS { . = CONFIG_ARCH_TEXT_BASE;
@@ -54,13 +52,6 @@ SECTIONS RO_DATA_SECTION } - .dtb ALIGN(16): - { - __dtb_start = .; - . += DTB_DEFAULT_SIZE; - __dtb_end = .; - } - _etext = .; /* End of text and rodata section */ .data ALIGN(4): {
Signature · 7 lines
2.17.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 9 lines · Clement Leger
dtb symbols (
__dtb_start,__dtb_end) are already defined usingRO_DATA_SECTION. This duplicated dtb section is a leftover used by Kalray internal tools to patch the dtb when loading the elf on a target. Remove it to keep only one symbol definition.Signed-off-by Clement Leger <[email protected]>--- arch/kvx/cpu/barebox.lds.S | 9 --------- 1 file changed, 9 deletions(-)
Applied, thanks
Sascha
Quoted 32 lines
arch/kvx/cpu/barebox.lds.S +0
-9@@ -10,8 +10,6 @@ OUTPUT_FORMAT("elf64-kvx") OUTPUT_ARCH("kvx:kv3-1:64") -#define DTB_DEFAULT_SIZE (24 * 1024) - SECTIONS { . = CONFIG_ARCH_TEXT_BASE;@@ -54,13 +52,6 @@ SECTIONS RO_DATA_SECTION } - .dtb ALIGN(16): - { - __dtb_start = .; - . += DTB_DEFAULT_SIZE; - __dtb_end = .; - } - _etext = .; /* End of text and rodata section */ .data ALIGN(4): {Signature · 1 line
2.17.1
Signature · 9 lines
Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox