This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc 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] Alpha hwcaps


Falk Hueffner <falk.hueffner@student.uni-tuebingen.de> writes:

> Falk Hueffner <falk.hueffner@student.uni-tuebingen.de> writes:
>
>> You mean like this?
>
> Grr, dl-sysdep.c gets picked up from elsewhere. Next try.
>
> It seems the additional paths are only checked when explicitely
> stating a library path:
>
> /# LD_LIBRARY_PATH=/lib strace true                            execve("/bin/true", ["true"], [/* 27 vars */]) = 0                              uname({sys="Linux", node="juist", ...}) = 0
> brk(0)                                  = 0x120014000
> open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
> open("/lib/ev68/libc.so.6.1", O_RDONLY) = -1 ENOENT (No such file or directory)
> stat("/lib/ev68", 0x11fffedf0)          = -1 ENOENT (No such file or directory)
> open("/lib/ev67/libc.so.6.1", O_RDONLY) = 3
> [...]
>
> # strace true                     
> execve("/bin/true", ["true"], [/* 26 vars */]) = 0
> uname({sys="Linux", node="juist", ...}) = 0
> brk(0)                                  = 0x120014000
> open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
> open("/etc/ld.so.cache", O_RDONLY)      = 3
> fstat(3, {st_mode=S_IFREG|0644, st_size=6116, ...}) = 0
> mmap(NULL, 6116, PROT_READ, MAP_PRIVATE, 3, 0) = 0x20000018000
> close(3)                                = 0
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
> open("/lib/libc.so.6.1", O_RDONLY)      = 3
> [...]
>
> Seems /etc/ld.so.cache won't pick up these directories. Rerunning
> ldconfig doesn't help. Any hints?

That should be done via dl-procinfo.h,

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


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