diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2008-08-13 16:24:40 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2008-08-13 16:29:31 +0200 |
commit | e25cc045ac5fa5002e0e2911e508f07e020a5363 (patch) | |
tree | 4767f811a6514d2d977f67fc01733d54e042d52a /arch/ppc/Makefile | |
parent | 820c001aa2bda4960d183e63fa99fce1e7351b27 (diff) | |
download | barebox-e25cc045ac5fa5002e0e2911e508f07e020a5363.tar.gz barebox-e25cc045ac5fa5002e0e2911e508f07e020a5363.tar.xz |
PPC: Add cleanup flags
Add cleanup flags to Makefile to let the linker throw away unneeded
objects.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/ppc/Makefile')
-rw-r--r-- | arch/ppc/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/ppc/Makefile b/arch/ppc/Makefile index a09e0a17b0..ab79a6506d 100644 --- a/arch/ppc/Makefile +++ b/arch/ppc/Makefile @@ -16,6 +16,11 @@ TEXT_BASE = $(CONFIG_TEXT_BASE) CPPFLAGS += -DTEXT_BASE=$(TEXT_BASE) -P +# Add cleanup flags +ifndef CONFIG_MODULE +CPPFLAGS += -fdata-sections -ffunction-sections +endif + ifeq ($(incdir-y),) incdir-y := $(machine-y) endif |