This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [WIP] glibc: Use /lib/ld-linux-armhf.so.3 for ARM's -mfloat-abi=hard ABI.


On Sat, 5 May 2012, Carlos O'Donell wrote:

> +# The EABI-derived hard-float ABI uses a new dynamic linker.
> +arm.*-.*-linux-gnueabihf       ld=ld-linux-armhf.so.3

That bit's not needed, because the compiler will define __ARM_PCS_VFP.

> +# The legacy ABI, no longer supported, uses ld-linux.so.2.
>  arm.*-.*-linux.*       ld=ld-linux.so.2

And that is no longer in the current shlib-versions, as old-ABI support 
has been removed.

> I'm not happy with this patch. I don't like it for the reason that an
> old unpatched gcc that still uses /lib/ld-linux.so.3 with a new glibc
> produces a glibc with /lib/ld-linux-armhf.so.3 even if the compiler
> doesn't. I guess in this case your setup is completely broken and
> testing should show you that.
> 
> Is it important to support the old gcc + new glibc for the hardfloat use case?

I don't see it as important.  Given the dynamic linker name change, to 
build / use new glibc you will need to patch your compiler to match if it 
predates the change.  Since we've agreed the ABI change, glibc shouldn't 
try to build for the old incompatible dynamic linker name any more; at 
most there could be detection of unpatched compilers to give an obvious 
error, but I think that's too complicated (given that configure tests 
requiring a previously built libc are to be avoided) to be worthwhile.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]