86xx: Cleanup for partial linking and --gc-sections
Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Kumar Gala <galak@kernel.crashing.org> Acked-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
ff2311ab5d
commit
4e2894be5e
2 changed files with 6 additions and 36 deletions
|
@ -28,7 +28,8 @@ include $(TOPDIR)/config.mk
|
||||||
|
|
||||||
LIB = $(obj)lib$(CPU).o
|
LIB = $(obj)lib$(CPU).o
|
||||||
|
|
||||||
START = start.o
|
SSTART = start.o
|
||||||
|
CSTART = traps.o
|
||||||
|
|
||||||
SOBJS-y += cache.o
|
SOBJS-y += cache.o
|
||||||
SOBJS-$(CONFIG_MP) += release.o
|
SOBJS-$(CONFIG_MP) += release.o
|
||||||
|
@ -42,11 +43,10 @@ COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
|
||||||
COBJS-y += interrupts.o
|
COBJS-y += interrupts.o
|
||||||
COBJS-$(CONFIG_MP) += mp.o
|
COBJS-$(CONFIG_MP) += mp.o
|
||||||
COBJS-y += speed.o
|
COBJS-y += speed.o
|
||||||
COBJS-y += traps.o
|
|
||||||
|
|
||||||
SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
|
SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
|
||||||
OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
|
OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
|
||||||
START := $(addprefix $(obj),$(START))
|
START := $(addprefix $(obj),$(SSTART) $(CSTART))
|
||||||
|
|
||||||
all: $(obj).depend $(START) $(LIB)
|
all: $(obj).depend $(START) $(LIB)
|
||||||
|
|
||||||
|
|
|
@ -26,40 +26,10 @@ SECTIONS
|
||||||
{
|
{
|
||||||
|
|
||||||
/* Read-only sections, merged into text segment: */
|
/* Read-only sections, merged into text segment: */
|
||||||
.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 :
|
.text :
|
||||||
{
|
{
|
||||||
arch/powerpc/cpu/mpc86xx/start.o (.text)
|
arch/powerpc/cpu/mpc86xx/start.o (.text*)
|
||||||
arch/powerpc/cpu/mpc86xx/traps.o (.text)
|
arch/powerpc/cpu/mpc86xx/traps.o (.text*)
|
||||||
arch/powerpc/cpu/mpc86xx/interrupts.o (.text)
|
|
||||||
arch/powerpc/cpu/mpc86xx/cpu_init.o (.text)
|
|
||||||
arch/powerpc/cpu/mpc86xx/cpu.o (.text)
|
|
||||||
arch/powerpc/cpu/mpc86xx/speed.o (.text)
|
|
||||||
common/dlmalloc.o (.text)
|
|
||||||
lib/crc32.o (.text)
|
|
||||||
arch/powerpc/lib/extable.o (.text)
|
|
||||||
lib/zlib.o (.text)
|
|
||||||
*(.text*)
|
*(.text*)
|
||||||
}
|
}
|
||||||
_etext = .;
|
_etext = .;
|
||||||
|
@ -112,8 +82,8 @@ SECTIONS
|
||||||
__bss_start = .;
|
__bss_start = .;
|
||||||
.bss (NOLOAD) :
|
.bss (NOLOAD) :
|
||||||
{
|
{
|
||||||
*(.sbss*)
|
|
||||||
*(.bss*)
|
*(.bss*)
|
||||||
|
*(.sbss*)
|
||||||
*(COMMON)
|
*(COMMON)
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue