mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-17 23:37:01 +00:00
use -ffunction-sections / --gc-sections on IXP42x
Signed-off-by: Michael Schwingen <michael@schwingen.org>
This commit is contained in:
parent
363613a08d
commit
66463e60df
2 changed files with 9 additions and 4 deletions
|
@ -27,6 +27,11 @@ BIG_ENDIAN = y
|
|||
PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float -mbig-endian
|
||||
|
||||
PLATFORM_CPPFLAGS += -mbig-endian -march=armv5te -mtune=strongarm1100
|
||||
|
||||
# -fdata-sections triggers "section .bss overlaps section .rel.dyn" linker error
|
||||
PLATFORM_RELFLAGS += -ffunction-sections
|
||||
LDFLAGS_u-boot += --gc-sections
|
||||
|
||||
# =========================================================================
|
||||
#
|
||||
# Supply options according to compiler version
|
||||
|
|
|
@ -31,8 +31,8 @@ SECTIONS
|
|||
. = ALIGN(4);
|
||||
.text :
|
||||
{
|
||||
arch/arm/cpu/ixp/start.o(.text)
|
||||
*(.text)
|
||||
arch/arm/cpu/ixp/start.o(.text*)
|
||||
*(.text*)
|
||||
}
|
||||
|
||||
. = ALIGN(4);
|
||||
|
@ -40,7 +40,7 @@ SECTIONS
|
|||
|
||||
. = ALIGN(4);
|
||||
.data : {
|
||||
*(.data)
|
||||
*(.data*)
|
||||
}
|
||||
|
||||
. = ALIGN(4);
|
||||
|
@ -67,7 +67,7 @@ SECTIONS
|
|||
|
||||
.bss __rel_dyn_start (OVERLAY) : {
|
||||
__bss_start = .;
|
||||
*(.bss)
|
||||
*(.bss*)
|
||||
. = ALIGN(4);
|
||||
__bss_end__ = .;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue