diff options
Diffstat (limited to 'c/src/lib/libbsp/powerpc/motorola_powerpc/make/custom/qemuprep.cfg')
-rw-r--r-- | c/src/lib/libbsp/powerpc/motorola_powerpc/make/custom/qemuprep.cfg | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/powerpc/motorola_powerpc/make/custom/qemuprep.cfg b/c/src/lib/libbsp/powerpc/motorola_powerpc/make/custom/qemuprep.cfg index e5f11fc468..36df4afa32 100644 --- a/c/src/lib/libbsp/powerpc/motorola_powerpc/make/custom/qemuprep.cfg +++ b/c/src/lib/libbsp/powerpc/motorola_powerpc/make/custom/qemuprep.cfg @@ -8,12 +8,15 @@ RTEMS_CPU=powerpc RTEMS_CPU_MODEL=mpc604 # This contains the compiler options necessary to select the CPU model -# and (hopefully) optimize for it. +# and (hopefully) optimize for it. # CPU_CFLAGS = -mcpu=powerpc -mmultiple -mstring -mstrict-align -D__ppc_generic # optimize flag: typically -O2 CFLAGS_OPTIMIZE_V = -O2 -g +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections + +LDFLAGS = -Wl,--gc-sections ifdef PURE_BINARY define bsp-post-link |