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

Andreas Jaeger aj@suse.de
Fri Dec 2 11:43:00 GMT 2005


"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
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20051202/666cde87/attachment.sig>


More information about the Libc-alpha mailing list