[Buildroot] [PATCH v6 4/7] arch: toolchain: Introduce binary format FLAT types.

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu Apr 25 14:27:53 UTC 2013


Dear Sonic Zhang,

On Thu, 18 Apr 2013 18:06:29 +0800, Sonic Zhang wrote:
> From: Sonic Zhang <sonic.zhang at analog.com>
> 
> Just introduce the symbol and options in arch generic Config.in.
> Add FLAT types specific compiling flags into package makefile.
> 
> Signed-off-by: Sonic Zhang <sonic.zhang at analog.com>

You can now add my:

Acked-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>

on this one.

> diff --git a/package/Makefile.in b/package/Makefile.in
> index a8bf36b..dd3bc7d 100644
> --- a/package/Makefile.in
> +++ b/package/Makefile.in
> @@ -103,6 +103,17 @@ TARGET_CFLAGS = $(TARGET_CPPFLAGS) $(TARGET_ABI) $(TARGET_OPTIMIZATION) $(TARGET
>  TARGET_CXXFLAGS = $(TARGET_CFLAGS)
>  TARGET_LDFLAGS = $(call qstrip,$(BR2_TARGET_LDFLAGS))
>  
> +ifeq ($(BR2_BINFMT_FLAT_SHARED),y)
> +TARGET_LDFLAGS += -mid-shared-library -mshared-library-id=0
> +TARGET_CFLAGS += -mid-shared-library -mshared-library-id=0
> +TARGET_CXXFLAGS += -mid-shared-library -mshared-library-id=0
> +endif
> +ifeq ($(BR2_BINFMT_FLAT_SEP_DATA),y)
> +TARGET_LDFLAGS += -msep-data
> +TARGET_CFLAGS += -msep-data
> +TARGET_CXXFLAGS += -msep-data
> +endif
> +

I had a discussion with Peter Korsgaard about this, and we've decided
to accept it as is, even though it should normally be part of the
external toolchain wrapper. But we haven't gotten to a nice and simple
solution for it, so let's do what you're proposing here.

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the buildroot mailing list