Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 378463 - Lack of 64-bit ld-linux.so.2 in /lib causes 32-bit apps to fail to run
Summary: Lack of 64-bit ld-linux.so.2 in /lib causes 32-bit apps to fail to run
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-09 10:02 UTC by Michał Górny
Modified: 2011-08-11 04:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-08-09 10:02:52 UTC
An attempt at executing any 32-bit application on multilib amd64 fails with ENOENT if /lib doesn't contain 64-bit (or 32-bit, both fit it) ld-linux.so.2 (and is not a symlink to lib64). That seems a little weird to me, like some kind of an ugly fallback mechanism or so.

Anyway, if apps really are supposed to rely on /lib/ld-linux.so.2, then I guess it should be installed there instead of /$(get_libdir). Not sure why and which one.
Comment 1 SpanKY gentoo-dev 2011-08-11 04:22:46 UTC
i dont know what you're talking about wrt needing 64bit ELFs to execute 32bit ones.  that's simply false.

ignoring that, glibc takes care of making all the right links.  future multilib cleanup is irrelevant as it'll obviously do the right thing when it happens.

$ gcc test.c -m32 && scanelf -qi a.out
/lib/ld-linux.so.2  a.out
$ gcc test.c -m64 && scanelf -qi a.out
/lib64/ld-linux-x86-64.so.2  a.out
$ ls /lib/ld-linux.so.2 /lib64/ld-linux-x86-64.so.2
/lib64/ld-linux-x86-64.so.2  /lib/ld-linux.so.2