[RFC] gcc linker path for armhf

dann frazier dann.frazier at canonical.com
Wed Oct 5 15:06:09 UTC 2011


At the ARM mini-summit there was a decision to change the linker path
encoded in binaries for the armhf port from:
   /lib/ld-linux.so.3
to:
   /lib/arm-linux-gnueabihf/ld-linux.so.3

Well, that's what I was told at least, room was too full when I got
there :)

I made an attempt at changing this simply by changing the static path,
but I got some feedback that pointed out this has problems on
(bi-|multi-) arch systems. So, I made a second pass by modifying the
linker spec to make this a runtime decision.

At this point I'd like to submit both patches as an RFC. I suspect the
static patch might be fine (and safest) for distributions like Debian
that don't yet enable bi-arch on armhf, but not for distros like
Ubuntu which do. The dynamic version should work in the bi-arch case,
but it also will change the default linker path for soft-float
binaries and I suspect we *don't* want to do that. Perhaps we need to
#ifdef that out somehow if we're building for a soft-float default
target?

Also, first time I've touched gcc spec files, so if anyone sees
anything that might be wrong, speakup - you're probably right :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: static-linker-change.patch
Type: text/x-diff
Size: 1690 bytes
Desc: not available
URL: <http://lists.linaro.org/pipermail/cross-distro/attachments/20111005/6b490250/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dynamic-linker-selection.patch
Type: text/x-diff
Size: 1054 bytes
Desc: not available
URL: <http://lists.linaro.org/pipermail/cross-distro/attachments/20111005/6b490250/attachment-0001.patch>


More information about the cross-distro mailing list