public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Keith Owens <kaos@ocs.com.au>
To: stimits@idcomm.com
Cc: kernel-list <linux-kernel@vger.kernel.org>
Subject: Re: Is this part of newer filesystem hierarchy?
Date: Sun, 24 Jun 2001 11:47:04 +1000	[thread overview]
Message-ID: <18859.993347224@ocs3.ocs-net> (raw)
In-Reply-To: Your message of "Sat, 23 Jun 2001 19:09:12 CST." <3B353DB8.578F43FB@idcomm.com>

On Sat, 23 Jun 2001 19:09:12 -0600, 
"D. Stimits" <stimits@idcomm.com> wrote:
>There is a directory on RH 7.1 x86, /lib/i686/. When checking with ldd
>to various applications, as to which libc they link to, it turns out
>that the /lib/libc.so.6 is not used. They all seem to point at
>/lib/i686/libc.so.6 (this is the version with debugging symbols) by
>default. The odd thing is that there are NO LD_ style path variables set
>on this system, there is NO /etc/ld.so.preload, and /etc/ld.so.conf does
>not contain any reference to /lib/i686/. So there is a question of just
>how it is possible for ld to use that directory and ignore /lib/ for
>libc.so.6.

15 minutes with a few commands, man pages and the source of glibc will
show you this ...

# /sbin/ldconfig -p | fgrep -w libc
libc.so.6 (libc6, hwcap: 0x8000000000000, OS ABI: Linux 2.4.1) => /lib/i686/libc.so.6
libc.so.6 (libc6, OS ABI: Linux 2.2.5) => /lib/libc.so.6

The data is coming from /etc/ld.so.cache which is build by ldconfig.
A quick scan of the source for ldconfig.c in glibc 2.2.2 shows that it
starts with standard paths /lib and /usr/lib then searches those
directories and all their subdirectories looking for libraries.  That
explains why it finds /lib/i686 without being explicitly specified.

Note the hwcap entry in /lib/i686/libc.so.6.  The dynamic linker no
longer takes the first entry it finds for a library, instead it looks
for the first entry that matches the current hardware.  This is
required for machines like ia64 which can also run i386 binaries and
for sparc which can run 32 or 64 bit apps.


  reply	other threads:[~2001-06-24  1:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-21 19:46 Is this part of newer filesystem hierarchy? D. Stimits
2001-06-22 10:02 ` Luigi Genoni
2001-06-22 17:00   ` D. Stimits
2001-06-22 21:40     ` Luigi Genoni
2001-06-23  4:38       ` D. Stimits
2001-06-23 16:25         ` Luigi Genoni
2001-06-23 19:17           ` D. Stimits
2001-06-23 23:42             ` Luigi Genoni
2001-06-23 23:49               ` Alan Cox
2001-06-24  0:16                 ` Luigi Genoni
2001-06-24  1:17                   ` Alan Cox
2001-06-24 13:25                     ` Luigi Genoni
2001-06-24  1:09                 ` D. Stimits
2001-06-24  1:47                   ` Keith Owens [this message]
2001-06-24 13:59                     ` Luigi Genoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18859.993347224@ocs3.ocs-net \
    --to=kaos@ocs.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stimits@idcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox