Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Sep 1998 20:31:01 -0700 (PDT)
From:      John Polstra <jdp@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   cvs commit: src/sbin/ldconfig elfhints.c ldconfig.h Makefile ldconfig.8 ldconfig.c src/libexec/rtld-elf rtld.c
Message-ID:  <199809050331.UAA13588@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jdp         1998/09/04 20:31:00 PDT

  Modified files:
    sbin/ldconfig        Makefile ldconfig.8 ldconfig.c 
    libexec/rtld-elf     rtld.c 
  Added files:
    sbin/ldconfig        elfhints.c ldconfig.h 
  Log:
  Implement ldconfig functionality for ELF.  The hints are stored in
  a different file than the a.out hints, namely, "/var/run/ld-elf.so.hints".
  These hints consist only of the directory search path.  There is
  no hash table as in the a.out hints, because ELF doesn't have to
  search for the file with the highest minor version number.  (It
  doesn't have minor version numbers at all.)
  
  A single run of ldconfig updates either the a.out hints or the ELF
  hints, but not both.  The set of hints to process is selected in
  the usual way, via /etc/objformat, or ${OBJFORMAT}, or the "-aout"
  or "-elf" command line option.  The rationale is that you probably
  want to search different directories for ELF than for a.out.
  
  "ldconfig -r" is faked up to produce output like we are used to,
  except that for ELF there are no minor version numbers.  This should
  enable "ldconfig -r" to be used for checking LIB_DEPENDS in ports
  even for ELF.
  
  I implemented the ELF functionality in a new source file, with an
  eye toward eliminating the a.out code entirely at some point in
  the future.
  
  Revision  Changes    Path
  1.14      +2 -2      src/sbin/ldconfig/Makefile
  1.16      +52 -20    src/sbin/ldconfig/ldconfig.8
  1.25      +92 -9     src/sbin/ldconfig/ldconfig.c
  1.8       +50 -3     src/libexec/rtld-elf/rtld.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809050331.UAA13588>