[PATCH] ldso - adding ARCH_NEEDS_BOOTSTRAP_RELOCS define

Peter Kjellerstedt peter.kjellerstedt at axis.com
Wed Jan 7 12:09:28 UTC 2009


> -----Original Message-----
> From: uclibc-bounces at uclibc.org [mailto:uclibc-bounces at uclibc.org] On
> Behalf Of olsajiri at gmail.com
> Sent: den 6 januari 2009 23:33
> To: carmelo73 at gmail.com; Joakim.Tjernlund at transmode.se;
> uclibc at uclibc.org
> Subject: [PATCH] ldso - adding ARCH_NEEDS_BOOTSTRAP_RELOCS define
> 
> Hi,
> I changed the define, and add check in the #else case for non relative
> relocs which calls _dl_exit(14) (it was there before for some goof
> stuff,
> but I'm not sure about the rules for the exit return value...).
> 
> I added ARCH_NEEDS_BOOTSTRAP_RELOCS to all archs except for arm, x86,
> powerpc and x86_64.
> 
> I also add change for the include/tls.h, I'm not sure why it is not
> defined, however this kills many warnings for me. I'm ready to remove
> it :).
> 
> 
> cheers,
> jirka
> 
> ---
> Index: include/tls.h
> ===================================================================
> --- include/tls.h	(revision 24692)
> +++ include/tls.h	(working copy)
> @@ -5,7 +5,7 @@
> 
>  #include_next <tls.h>
> 
> -#if USE_TLS && HAVE___THREAD \
> +#if defined USE_TLS && HAVE___THREAD \

To maintain functionality, that should be:

#if defined USE_TLS && USE_TLS && HAVE___THREAD \

>      && (!defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt)
> 
>  # define USE___THREAD 1

//Peter



More information about the uClibc mailing list