svn commit: trunk/uClibc

Bernhard Fischer rep.dot.nop at gmail.com
Tue Apr 29 15:01:17 UTC 2008


On Mon, Apr 28, 2008 at 05:36:58PM -0700, vda at uclibc.org wrote:
>Author: vda
>Date: 2008-04-28 17:36:57 -0700 (Mon, 28 Apr 2008)
>New Revision: 21886
>
>Log:
>build system: use a bit more aggressive gcc/ld optimizations,
>mostly related to ELF section ans padding, not code gen.

s/ans/and/

> ifeq ($(TARGET_ARCH),i386)
>+	OPTIMIZATION+=$(call check_gcc,-fomit-frame-pointer,)
>+
>+	# NB: this may make SSE insns segfault!
>+	# -O1 -march=pentium3, -Os -msse etc are known to be affected.
>+	# TODO: conditionally bump to 4
>+	# (see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13685)
> 	OPTIMIZATION+=$(call check_gcc,-mpreferred-stack-boundary=2,)

I believe that this is fixed on 4.3.0 and 4.2.3; ISTR that the stack
branch will be more clever in this respect (not yet merged AFAIK).

>+	CPU_CFLAGS-y  += $(call check_gcc,-ffunction-sections -fdata-sections,)
>+	CPU_LDFLAGS-y += -Wl,--sort-common -Wl,--sort-section -Wl,alignment

Is this really correct? I would have thought that this should read
-Wl,--sort-section,alignment

Also, why don't you check if the linker really supports them?



More information about the uClibc mailing list