Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 May 1997 16:21:31 -0700 (PDT)
From:      John Polstra <jdp@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG
Subject:   cvs commit: src/sys/i386/conf Makefile.i386 src/sys/i386/i386 gensetdefs.c machdep.c setdef0.c setdef1.c setdefs.h
Message-ID:  <199705212321.QAA04292@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jdp         1997/05/21 16:21:31 PDT

  Modified files:
    sys/i386/conf        Makefile.i386 
    sys/i386/i386        machdep.c setdef0.c setdef1.c 
  Added files:
    sys/i386/i386        gensetdefs.c 
  Removed files:
    sys/i386/i386        setdefs.h 
  Log:
  This commit affects ELF kernels only.
  
  Remove "setdefs.h" and arrange to generate it automatically at
  ELF kernel build time.
  
  "gensetdefs.c" is a utility which scans a set of ELF object files
  and outputs a line ``DEFINE_SET(name, length);'' for each linker
  set that it finds.  When generating an ELF kernel, this is run just
  before the final link to generate "setdefs.h".
  
  Remove the init_sets() function from "setdef0.c", and its call from
  "machdep.c".  Since "gensetdefs.c" calculates the length of each
  set, it is no longer necessary in an ELF kernel to count the set
  elements at kernel initialization time.  Also remove "set_of_sets"
  which was used for this purpose.
  
  Link "setdef0" and "setdef1" into the kernel only if building for
  ELF.  Since init_sets() is no longer used, there is no need to link
  them into an a.out kernel.
  
  Revision  Changes    Path
  1.97      +25 -10    src/sys/i386/conf/Makefile.i386
  1.242     +1 -7      src/sys/i386/i386/machdep.c
  1.2       +6 -49     src/sys/i386/i386/setdef0.c
  1.2       +5 -9      src/sys/i386/i386/setdef1.c



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