Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Apr 2000 06:19:32 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_linker.c kern_module.c link_aout.c link_elf.c linker_if.m src/sys/sys linker.h module.h
Message-ID:  <200004291319.GAA66067@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
peter       2000/04/29 06:19:32 PDT

  Modified files:
    sys/kern             kern_linker.c kern_module.c link_aout.c 
                         link_elf.c linker_if.m 
    sys/sys              linker.h module.h 
  Log:
  First round implementation of a fine grain enhanced module to module
  version dependency system.  This isn't quite finished, but it is at a
  useful stage to do a functional checkpoint.
  
  Highlights:
  - version and dependency metadata is gathered via linker sets, so things
  are handled the same for static kernels and code built to live in a kld.
  - The dependencies are at module level (versus at file level).
  - Dependencies determine kld symbol search order - this means that you
  cannot link against symbols in another file unless you depend on it. This
  is so that you cannot accidently unload the target out from underneath
  the ones referencing it.
  - It is flexible enough that we can put tags in #include files and macros
  so that we can get decent hooks for enforcing recompiles on incompatable
  ABI changes.  eg: if we change struct proc, we could force a recompile
  for all kld's that reference the proc struct.
  - Tangled dependency references at boot time are sorted.  Files are
  relocated once all their dependencies are already relocated.
  
  Caveats:
  - Loader support is incomplete, but has been worked on seperately.
  - Actual enforcement of the version number tags is not active yet - just
  the module dependencies are live.  The actual structure of versioning
  hasn't been agreed on yet. (eg: major.minor, or whatever)
  - There is some backwards compatability for old modules without metadata
  but I'm not sure how good it is.
  
  This is based on work originally done by Boris Popov (bp@freebsd.org),
  but I'm not sure he'd recognize much of it now. Don't blame him. :-)
  Also, ideas have been borrowed from Mike Smith.
  
  Revision  Changes    Path
  1.43      +481 -131  src/sys/kern/kern_linker.c
  1.22      +3 -16     src/sys/kern/kern_module.c
  1.28      +40 -78    src/sys/kern/link_aout.c
  1.27      +56 -78    src/sys/kern/link_elf.c
  1.2       +9 -1      src/sys/kern/linker_if.m
  1.19      +5 -10     src/sys/sys/linker.h
  1.15      +63 -1     src/sys/sys/module.h



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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