diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-03-30 13:57:52 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-04-08 13:33:18 +0200 |
commit | e92abad36307d2fb45dd7c75cfcaee65b8a73bf7 (patch) | |
tree | 8a8500a907a763ac47f95b45f7ba7747bd4e5b09 /arch/ppc | |
parent | 98257ee8cb49c3032ffe5dd294378748d77cb6c9 (diff) | |
download | barebox-e92abad36307d2fb45dd7c75cfcaee65b8a73bf7.tar.gz barebox-e92abad36307d2fb45dd7c75cfcaee65b8a73bf7.tar.xz |
PPC: discard unused functions
Use --gc-sections to discard unused functions. This makes the image
smaller.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/ppc')
-rw-r--r-- | arch/ppc/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/ppc/Makefile b/arch/ppc/Makefile index fb9b0b89f8..05ec2438ac 100644 --- a/arch/ppc/Makefile +++ b/arch/ppc/Makefile @@ -29,6 +29,7 @@ CPPFLAGS += -DTEXT_BASE=$(TEXT_BASE) # Add cleanup flags ifndef CONFIG_MODULES CPPFLAGS += -fdata-sections -ffunction-sections +LDFLAGS_barebox += --gc-sections endif machdirs := $(patsubst %,arch/ppc/mach-%/,$(machine-y)) |