Q: usage of static symbols in elf/readlib.c ?

Nardmann, Heiko heiko.nardmann@secunet.com
Fri Dec 2 12:44:00 GMT 2005


Am Freitag, 2. Dezember 2005 12:43 schrieb Andreas Jaeger:
> "Nardmann, Heiko" <heiko.nardmann@secunet.com> writes:
> > I am trying to understand elf/readlib.c but currently are wondering how
> > the symbols 'interpreters' and 'known_libs' are used. They are declared
> > as static and not referenced inside the file. So what is the magic here?
>
> Read until the last line of readlib.c:
>
> /* Get architecture specific version of process_elf_file.  */
> #include "readelflib.c"
>
>
> They are used by the file readelflib.c which is system dependend, the
> generic one is in sysdeps/generic/readelflib.c and use both variables,
>
> Andreas

Thanks, I missed the third file (from generic) in the chain. And this means 
that the commercial tool used for code checking has another problem ...

-- 
Heiko Nardmann (Dipl.-Ing. Technische Informatik)
secunet Security Networks AG - Sicherheit in Netzwerken (www.secunet.de),
Weidenauer Str. 223-225, D-57076 Siegen
Tel. : +49 271 48950-13, Fax  : +49 271 48950-50
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20051202/b2dfc77a/attachment.sig>


More information about the Libc-alpha mailing list