Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Oct 1995 05:27:21 -0700
From:      Peter Wemm <peter>
To:        CVS-commiters, cvs-usrbin
Subject:   cvs commit: src/usr.bin/symorder symorder.c
Message-ID:  <199510281227.FAA08026@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
peter       95/10/28 05:27:21

  Modified:    usr.bin/symorder  symorder.c
  Log:
  symorder appears to have been designed to run on executable files
  only, as it payes no attention to the relocation table (which
  references the symbols).
  
  As a result, running "symorder -c" to clean up the visibility of a LKM
  ".o" file (as is done in the new bsd.kmod.mk) totally screws up the
  relocation table, making the LKM file unloadable. (ld: bogus
  relocation record)
  
  This is a pretty crude fix - I've changed symorder so that when
  running in "cleanup" mode, it disables the reordering which was
  screwing up the relocation table.  I'm sure there is a better fix, but
  I didn't have the energy.  Feel free to fix this hack, probably by
  renumbering the symbol indexes in the relocation table.



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