On Thu, Oct 19, 2006 at 05:17:25PM -0500, Steve Fox wrote:
> build: Put ld scripts in separate lib/lib64 directories in order to better
> support multilib packages.
> ---
> For example this puts elf32ppclinux* in $PREFIX/lib/libhugetlbfs and
> elf64ppc* in $PREFIX/lib64/libhugetlbfs. This also creates a ld.hugetlbfs
> in each dir which points to the appropriate ld scripts. This is already 
> how some distros ship our package and others have requested the same.
> 
> NOTE: This is an RFC for two reasons:
> 
> 1) Someone may know of more elaborate way to install the separate ld.hugetlbfs
>    scripts without near-duplicating the make targets.

Please don't, having two versions of the ld wrapper is horrid - it
already parses the -m option to work out which sort of thing it's
building.  Instead we should either change ld.hugetlbfs so it looks in
multiple places for the linker scripts, or (IMO simpler and better)
just put the linker scripts in "both" split and common locations,
using symlinks.

> 2) The ld.hugetlbfs script tries to return the highest "bit-ness" for the
>    hardware, regardless of being in the 32-bit lib dir. This results in 
>    trying to use a non-existant ld script when linking our "easy"
> way.

Hrm.. not exactly.  ld.hugetlbfs attempts to mimic the behaviour of
the default linker when invoked without special options.  On ppc64
systems with 32-bit userspace (the normal case), this will mean a
32-bit link by default, not the "highest bitness".

However, invoking the hugetlbfs link options won't work unless you
explicitly give the emulation target with -m, which specifies the
bitness in any case.

-- 
David Gibson                    | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au  | minimalist, thank you.  NOT _the_ _other_
                                | _way_ _around_!
http://www.ozlabs.org/~dgibson

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to