[PATCH 3/3] ldso: exclude -fasynchronous-unwind-tables from ldso CFLAGS

Filippo ARCIDIACONO filippo.arcidiacono at st.com
Mon Sep 16 05:51:07 UTC 2013


On 9/13/2013 9:35 PM, Rajendra Dendukuri wrote:
> I tried the patch and it looks good. I tried in our full blown application and it works like magic!
Good. I'm happy to hear this.
>
> /Thanks
>
> -----Original Message-----
> From: uclibc-bounces at uclibc.org [mailto:uclibc-bounces at uclibc.org] On Behalf Of Filippo ARCIDIACONO
> Sent: Friday, September 13, 2013 4:32 AM
> To: uclibc at uclibc.org
> Subject: [PATCH 3/3] ldso: exclude -fasynchronous-unwind-tables from ldso CFLAGS
>
> At least on ARM, building the ld.so with -fasynchronous-unwind-tables
> for backtrace is creating a dependencies against libc through libgcc_eh.
> So it needs to exclude this from the ldso cflags.
>
> Signed-off-by: Carmelo Amoroso <carmelo.amoroso at st.com>
> Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono at st.com>
> ---
>   ldso/ldso/Makefile.in |    2 ++
>   1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/ldso/ldso/Makefile.in b/ldso/ldso/Makefile.in
> index 91165c6..65f9a46 100644
> --- a/ldso/ldso/Makefile.in
> +++ b/ldso/ldso/Makefile.in
> @@ -30,6 +30,8 @@ CFLAGS-ldso/ldso/$(TARGET_ARCH)/ := $(CFLAGS-ldso)
>   
>   CFLAGS-ldso.c := -DLDSO_ELFINTERP=\"$(TARGET_ARCH)/elfinterp.c\" $(CFLAGS-ldso)
>   
> +CFLAGS-OMIT-ldso.c = -fasynchronous-unwind-tables
> +
>   LDFLAGS-$(UCLIBC_FORMAT_DSBT_ELF)-$(UCLIBC_LDSO_NAME).so := -Wl,--dsbt-index=1
>   ifneq ($(SUPPORT_LD_DEBUG),y)
>   LDFLAGS-$(UCLIBC_LDSO_NAME).so := $(LDFLAGS)



More information about the uClibc mailing list