This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Alpha hwcaps
On Sat, Sep 21, 2002 at 05:40:01PM +0200, Falk Hueffner wrote:
> Hi,
>
> it looks like there *is* already some support in the loader for this:
>
> % LD_LIBRARY_PATH=/lib strace true 2>&1
> execve("/bin/true", ["true"], [/* 36 vars */]) = 0
> uname({sys="Linux", node="juist", ...}) = 0
> brk(0) = 0x120013668
> mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2000001e000
> open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/lib/ev5/libc.so.6.1", O_RDONLY) = -1 ENOENT (No such file or directory)
> stat("/lib/ev5", 0x11fffe688) = -1 ENOENT (No such file or directory)
> open("/lib/libc.so.6.1", O_RDONLY) = 3
> [...]
>
> However, even after searching for about half an hour, I could not find
> the place in the code where it gets probed and the path extended...
> can anybody give me a hint?
Have a look at libc/elf/dl-load.c (_dl_init_paths, ...)
and libc/sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps, ...).
Jakub