This is the mail archive of the libc-alpha@sourceware.org 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: Q: usage of static symbols in elf/readlib.c ?


"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

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]