1. 18 2月, 2007 1 次提交
  2. 02 2月, 2007 1 次提交
    • A
      [PATCH] __crc_... is intended to be absolute · 2a3d4f1f
      Al Viro 提交于
      i386 boot/compressed/relocs checks for absolute symbols and warns about
      unexpected ones.  If you build with modversions, you get ~2500 warnings
      about __crc_<symbol>.  These suckers are really absolute symbols - we
      do _not_ want to modify them on relocation.
      
      They are generated by genksyms - EXPORT_... generates a weak alias, then
      genksyms produces an ld script with __crc_<symbol> = <checksum> and it's
      fed to ld to produce the final object file.  Their only use is to match
      kernel and module at modprobe time; they _must_ be absolute.
      
      boot/compressed/relocs has a whitelist of known absolute symbols, but
      it doesn't know about __crc_... stuff.  As the result, we get shitloads
      of false positives on any ld(1) version.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      2a3d4f1f
  3. 07 12月, 2006 2 次提交
    • V
      [PATCH] i386: Warn upon absolute relocations being present · 6a044b3a
      Vivek Goyal 提交于
      o Relocations generated w.r.t absolute symbols are not processed as by
        definition, absolute symbols are not to be relocated. Explicitly warn
        user about absolutions relocations present at compile time.
      
      o These relocations get introduced either due to linker optimizations or
        some programming oversights.
      
      o Also create a list of symbols which have been audited to be safe and
        don't emit warnings for these.
      Signed-off-by: NVivek Goyal <vgoyal@in.ibm.com>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      6a044b3a
    • E
      [PATCH] i386: Relocatable kernel support · 968de4f0
      Eric W. Biederman 提交于
      This patch modifies the i386 kernel so that if CONFIG_RELOCATABLE is
      selected it will be able to be loaded at any 4K aligned address below
      1G.  The technique used is to compile the decompressor with -fPIC and
      modify it so the decompressor is fully relocatable.  For the main
      kernel relocations are generated.  Resulting in a kernel that is relocatable
      with no runtime overhead and no need to modify the source code.
      
      A reserved 32bit word in the parameters has been assigned
      to serve as a stack so we figure out where are running.
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NVivek Goyal <vgoyal@in.ibm.com>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      968de4f0