Skip to content
Snippets Groups Projects
Commit 66463e60 authored by Michael Schwingen's avatar Michael Schwingen Committed by Albert ARIBAUD
Browse files

use -ffunction-sections / --gc-sections on IXP42x

parent 363613a0
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,11 @@ BIG_ENDIAN = y ...@@ -27,6 +27,11 @@ BIG_ENDIAN = y
PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float -mbig-endian PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float -mbig-endian
PLATFORM_CPPFLAGS += -mbig-endian -march=armv5te -mtune=strongarm1100 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 # Supply options according to compiler version
......
...@@ -31,8 +31,8 @@ SECTIONS ...@@ -31,8 +31,8 @@ SECTIONS
. = ALIGN(4); . = ALIGN(4);
.text : .text :
{ {
arch/arm/cpu/ixp/start.o(.text) arch/arm/cpu/ixp/start.o(.text*)
*(.text) *(.text*)
} }
. = ALIGN(4); . = ALIGN(4);
...@@ -40,7 +40,7 @@ SECTIONS ...@@ -40,7 +40,7 @@ SECTIONS
. = ALIGN(4); . = ALIGN(4);
.data : { .data : {
*(.data) *(.data*)
} }
. = ALIGN(4); . = ALIGN(4);
...@@ -67,7 +67,7 @@ SECTIONS ...@@ -67,7 +67,7 @@ SECTIONS
.bss __rel_dyn_start (OVERLAY) : { .bss __rel_dyn_start (OVERLAY) : {
__bss_start = .; __bss_start = .;
*(.bss) *(.bss*)
. = ALIGN(4); . = ALIGN(4);
__bss_end__ = .; __bss_end__ = .;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment