enable -ffunction-sections for libgcc and libc

This commit is contained in:
Wolfgang Thaller 2017-09-30 03:01:49 +02:00
parent 821bc04a7a
commit a68112b08d
2 changed files with 5 additions and 0 deletions

View File

@ -233,6 +233,7 @@ LIBGCC2_DEBUG_CFLAGS = -g
LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) $(HOST_LIBGCC2_CFLAGS) \
$(LIBGCC2_DEBUG_CFLAGS) -DIN_LIBGCC2 \
-fbuilding-libgcc -fno-stack-protector \
-ffunction-sections \
$(INHIBIT_LIBC_CFLAGS)
# Additional options to use when compiling libgcc2.a.

View File

@ -654,6 +654,10 @@ case "${host}" in
newlib_cflags="${newlib_cflags} -DHAVE_RENAME -DHAVE_SYSTEM -DMISSING_SYSCALL_NAMES -DMALLOC_PROVIDED"
syscall_dir=
;;
m68k-apple-macos)
newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES -DMALLOC_PROVIDED"
newlib_cflags="${newlib_cflags} -ffunction-sections"
;;
mcore-*-*)
syscall_dir=syscalls
;;