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: [PATCH] aarch64: use lib64 as default lib and slib directory


On Mon, Mar 18, 2013 at 11:25:48AM +0000, Marcus Shawcroft wrote:
> The patches applied to gcc and glibc to move aarch64 libraries from
> /lib to /lib64 are inconsistent.  We are now in a situation where gcc
> expects the dynamic loader to be /lib while glibc installs it to
> /lib64.  I don't see a trivial change to Andreas' glibc patch.  I
> think these patches need to be reverted until a working solution is
> found.

s390x has the same model and is just fine with that as is.

Anyway, if you really want to install glibc's dynamic linker into /lib
rather than /lib64 (on s390x it is installed into /lib64 and distros just
take care of adding the needed symlink), it shouldn't be that hard to change
it, and just needs patching of glibc to support it.

find . -name M\* | xargs grep rtld-installed-name
in glibc tree shows just a couple of places that would need adjusting,
basically add new configure/Make* variables, counterpart of slibdir and
inst_slibdir, say rtld_slibdir and inst_rtld_slibdir or similar, make it
default to slibdir (and inst_rtld_slibdir = $(install_root)$(rtld_slibdir)
in Makeconfig), and allow target configure's to override the default, i.e.
for s390x and aarch64 use /lib instead of /lib64 there.
Then just a few tweaks in Makerules, elf/Makefile to install the dynamic
linker into $(inst_rtld_slibdir)/$(rtld-installed-name) and e.g. use
$(rtld_slibdir)/$(rtld-installed-name) in linker scripts and .interp.

	Jakub


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