From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 15/25 V3] 83xx: Cleanup for partial linking and --gc-sections
Date: Fri, 26 Nov 2010 20:56:56 +0100 [thread overview]
Message-ID: <1290801416-5652-1-git-send-email-wd@denx.de> (raw)
In-Reply-To: <1290700844-31427-16-git-send-email-wd@denx.de>
Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Kim Phillips <kim.phillips@freescale.com>
Cc: Haiying Wang <r54964@freescale.com>
---
Changes since V2:
- fixed nand_spl/*/u-boot.lds as pointed out by Haiying
arch/powerpc/cpu/mpc83xx/u-boot.lds | 53 ++++------------------
nand_spl/board/freescale/mpc8313erdb/u-boot.lds | 7 ++-
nand_spl/board/freescale/mpc8315erdb/u-boot.lds | 7 ++-
3 files changed, 18 insertions(+), 49 deletions(-)
diff --git a/arch/powerpc/cpu/mpc83xx/u-boot.lds b/arch/powerpc/cpu/mpc83xx/u-boot.lds
index 0b74a13..81a7ace 100644
--- a/arch/powerpc/cpu/mpc83xx/u-boot.lds
+++ b/arch/powerpc/cpu/mpc83xx/u-boot.lds
@@ -1,5 +1,5 @@
/*
- * (C) Copyright 2006
+ * (C) Copyright 2006-2010
* Wolfgang Denk, DENX Software Engineering, wd at denx.de.
*
* See file CREDITS for list of people who contributed to this
@@ -25,41 +25,13 @@ OUTPUT_ARCH(powerpc)
SECTIONS
{
/* Read-only sections, merged into text segment: */
- . = + SIZEOF_HEADERS;
- .interp : { *(.interp) }
- .hash : { *(.hash) }
- .dynsym : { *(.dynsym) }
- .dynstr : { *(.dynstr) }
- .rel.text : { *(.rel.text) }
- .rela.text : { *(.rela.text) }
- .rel.data : { *(.rel.data) }
- .rela.data : { *(.rela.data) }
- .rel.rodata : { *(.rel.rodata) }
- .rela.rodata : { *(.rela.rodata) }
- .rel.got : { *(.rel.got) }
- .rela.got : { *(.rela.got) }
- .rel.ctors : { *(.rel.ctors) }
- .rela.ctors : { *(.rela.ctors) }
- .rel.dtors : { *(.rel.dtors) }
- .rela.dtors : { *(.rela.dtors) }
- .rel.bss : { *(.rel.bss) }
- .rela.bss : { *(.rela.bss) }
- .rel.plt : { *(.rel.plt) }
- .rela.plt : { *(.rela.plt) }
- .init : { *(.init) }
- .plt : { *(.plt) }
.text :
{
- arch/powerpc/cpu/mpc83xx/start.o (.text)
- *(.text)
- *(.got1)
+ arch/powerpc/cpu/mpc83xx/start.o (.text*)
+ *(.text*)
. = ALIGN(16);
- *(.eh_frame)
*(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
}
- .fini : { *(.fini) } =0
- .ctors : { *(.ctors) }
- .dtors : { *(.dtors) }
/* Read-write section, merged into data segment: */
. = (. + 0x0FFF) & 0xFFFFF000;
@@ -67,23 +39,19 @@ SECTIONS
PROVIDE (erotext = .);
.reloc :
{
- *(.got)
+ KEEP(*(.got))
_GOT2_TABLE_ = .;
- *(.got2)
+ KEEP(*(.got2))
_FIXUP_TABLE_ = .;
- *(.fixup)
+ KEEP(*(.fixup))
}
__got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
__fixup_entries = (. - _FIXUP_TABLE_) >> 2;
.data :
{
- *(.data)
- *(.data1)
- *(.sdata)
- *(.sdata2)
- *(.dynamic)
- CONSTRUCTORS
+ *(.data*)
+ *(.sdata*)
}
_edata = .;
PROVIDE (edata = .);
@@ -109,9 +77,8 @@ SECTIONS
__bss_start = .;
.bss (NOLOAD) :
{
- *(.sbss) *(.scommon)
- *(.dynbss)
- *(.bss)
+ *(.bss*)
+ *(.sbss*)
*(COMMON)
. = ALIGN(4);
}
diff --git a/nand_spl/board/freescale/mpc8313erdb/u-boot.lds b/nand_spl/board/freescale/mpc8313erdb/u-boot.lds
index ad82589..138e427 100644
--- a/nand_spl/board/freescale/mpc8313erdb/u-boot.lds
+++ b/nand_spl/board/freescale/mpc8313erdb/u-boot.lds
@@ -30,7 +30,6 @@ SECTIONS
.text : {
*(.text*)
. = ALIGN(16);
- *(.eh_frame)
*(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
}
@@ -39,13 +38,15 @@ SECTIONS
*(.data*)
*(.sdata*)
_GOT2_TABLE_ = .;
- *(.got2)
+ KEEP(*(.got2))
__got2_entries = (. - _GOT2_TABLE_) >> 2;
}
. = ALIGN(8);
__bss_start = .;
- .bss (NOLOAD) : { *(.*bss) }
+ .bss (NOLOAD) : {
+ *(.*bss)
+ }
_end = .;
}
ENTRY(_start)
diff --git a/nand_spl/board/freescale/mpc8315erdb/u-boot.lds b/nand_spl/board/freescale/mpc8315erdb/u-boot.lds
index ad82589..138e427 100644
--- a/nand_spl/board/freescale/mpc8315erdb/u-boot.lds
+++ b/nand_spl/board/freescale/mpc8315erdb/u-boot.lds
@@ -30,7 +30,6 @@ SECTIONS
.text : {
*(.text*)
. = ALIGN(16);
- *(.eh_frame)
*(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
}
@@ -39,13 +38,15 @@ SECTIONS
*(.data*)
*(.sdata*)
_GOT2_TABLE_ = .;
- *(.got2)
+ KEEP(*(.got2))
__got2_entries = (. - _GOT2_TABLE_) >> 2;
}
. = ALIGN(8);
__bss_start = .;
- .bss (NOLOAD) : { *(.*bss) }
+ .bss (NOLOAD) : {
+ *(.*bss)
+ }
_end = .;
}
ENTRY(_start)
--
1.7.3.2
next prev parent reply other threads:[~2010-11-26 19:56 UTC|newest]
Thread overview: 68+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-21 21:03 [U-Boot] [PATCH 0/7] Address partial linking issues Wolfgang Denk
2010-11-21 21:03 ` [U-Boot] [PATCH 1/7] common/Makefile: don't include env_embedded.o into libcommon Wolfgang Denk
2010-11-21 21:45 ` Mike Frysinger
2010-11-21 21:03 ` [U-Boot] [PATCH 2/7] cpu/ppc4xx/Makefile: build only needed object files Wolfgang Denk
2010-11-21 21:03 ` [U-Boot] [PATCH 3/7] arch/powerpc/config.mk: make CONFIG_SYS_LDSCRIPT settings work Wolfgang Denk
2010-11-21 21:03 ` [U-Boot] [PATCH 4/7] PPChameleonEVB and CATcenter need a custom linker script Wolfgang Denk
2010-11-21 21:03 ` [U-Boot] [PATCH 5/7] ERIC: drop unsupported board configuration Wolfgang Denk
2010-11-21 21:03 ` [U-Boot] [PATCH 6/7] POWERPC: enable --gc-sections and -ffunction-sections -fdata-sections Wolfgang Denk
2010-11-21 22:31 ` Peter Tyser
2010-11-22 7:11 ` Wolfgang Denk
2010-11-22 7:10 ` [U-Boot] [PATCH 6/7 v2] " Wolfgang Denk
2010-11-21 21:03 ` [U-Boot] [PATCH 7/7] 4xx: Cleanup for partial linking and --gc-sections Wolfgang Denk
2010-11-23 13:31 ` Stefan Roese
2010-11-23 19:55 ` Wolfgang Denk
2010-11-24 5:40 ` Stefan Roese
2010-11-22 7:34 ` [U-Boot] [PATCH] 86xx: " Wolfgang Denk
2010-11-22 20:37 ` [U-Boot] [PATCH] 8xx: " Wolfgang Denk
2010-11-22 21:44 ` [U-Boot] [PATCH] 5xx: " Wolfgang Denk
2010-11-22 22:40 ` [U-Boot] [PATCH] 512x: " Wolfgang Denk
2010-11-22 22:58 ` Timur Tabi
2010-11-29 21:24 ` Anatolij Gustschin
2010-11-29 21:28 ` [U-Boot] [PATCH] video: move fsl_diu_fb driver to drivers/video Anatolij Gustschin
2010-12-01 19:53 ` Anatolij Gustschin
2010-11-23 6:02 ` [U-Boot] [PATCH 0/7] Address partial linking issues Stefan Roese
2010-11-25 16:00 ` [U-Boot] [PATCH 01/24] 0000-Address-partial-linking-issues Wolfgang Denk
2010-11-27 22:18 ` Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 01/24] ERIC: drop unsupported board configuration Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 02/24] barco: " Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 03/24] e1000: fix compile warning Wolfgang Denk
2010-11-28 17:48 ` Sergei Shtylyov
2010-11-25 16:00 ` [U-Boot] [PATCH 04/24] IDS8247: remove redundant flash.c file Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 05/24] WINBOND_83C553: enable only on boards that actually use it Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 06/24] cam5200_niosflash: fix build warnings Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 07/24 V2] common/Makefile: don't include env_embedded.o into libcommon Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 08/24 V2] cpu/ppc4xx/Makefile: build only needed object files Wolfgang Denk
2010-11-25 16:10 ` Stefan Roese
2010-11-25 16:00 ` [U-Boot] [PATCH 09/24 V2] arch/powerpc/*/config.mk: make CONFIG_SYS_LDSCRIPT settings work Wolfgang Denk
2010-11-25 16:20 ` [U-Boot] [PATCH 09/24 V2] arch/powerpc/*/config.mk: makeCONFIG_SYS_LDSCRIPT " Haiying Wang
2010-11-25 17:19 ` Wolfgang Denk
2010-11-25 18:16 ` [U-Boot] [PATCH 09/24 V2] arch/powerpc/*/config.mk:makeCONFIG_SYS_LDSCRIPT " Haiying Wang
2010-11-25 18:28 ` Wolfgang Denk
2010-11-25 18:59 ` Haiying Wang
2010-11-25 17:47 ` [U-Boot] [PATCH 09/24 V2] arch/powerpc/*/config.mk: makeCONFIG_SYS_LDSCRIPT " Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 10/24 V2] PPChameleonEVB and CATcenter need a custom linker script Wolfgang Denk
2010-11-25 16:12 ` Stefan Roese
2010-11-25 16:00 ` [U-Boot] [PATCH 11/24 V2] ppc4xx: Fix build problems of IBM DDR2 NAND booting targets Wolfgang Denk
2010-11-25 16:15 ` Stefan Roese
2010-11-25 16:00 ` [U-Boot] [PATCH 12/24 V3] POWERPC: enable --gc-sections and -ffunction-sections -fdata-sections Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 13/24 V2] ppc4xx: Cleanup for partial linking and --gc-sections Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 14/24 V2] ppc4xx/NAND: Reduce size of NAND SPL image Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 15/24 V2] 83xx: Cleanup for partial linking and --gc-sections Wolfgang Denk
2010-11-25 18:02 ` Wolfgang Denk
2010-11-25 18:23 ` [U-Boot] [PATCH 15/24 V2] 83xx: Cleanup for partial linking and--gc-sections Haiying Wang
2010-11-25 18:32 ` Wolfgang Denk
2010-11-25 18:56 ` Haiying Wang
2010-11-26 19:53 ` Wolfgang Denk
2010-11-26 19:56 ` Wolfgang Denk [this message]
2010-11-28 15:11 ` [U-Boot] [PATCH 15/25 V4] 83xx: Cleanup for partial linking and --gc-sections Kim Phillips
2010-11-28 16:36 ` Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 16/24 V2] 86xx: " Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 17/24 V2] 8xx: " Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 18/24 V2] 5xx: " Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 19/24 V2] 512x: " Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 20/24 V2] 5xxx: " Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 21/24 V2] 8220: " Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 22/24 V2] 824x: " Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 23/24 V2] 8260: " Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 24/24 V2] 74xx_7xx: " Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1290801416-5652-1-git-send-email-wd@denx.de \
--to=wd@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox