1. 17 Jul, 2007 3 commits
    • Ralf Baechle's avatar
      Whitelist references from __dbe_table to .init · eec73e88
      Ralf Baechle authored
      This is needed on MIPS where the same mechanism as get_user() is used to
      intercept bus error exceptions for some hardware probes.  Without this
      patch modpost will throw spurious warnings:
      
        LD      vmlinux
        SYSMAP  System.map
        SYSMAP  .tmp_System.map
        MODPOST vmlinux
      WARNING: arch/mips/sgi-ip22/built-in.o(__dbe_table+0x0): Section mismatch: reference to .init.text:
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      eec73e88
    • Jan Beulich's avatar
      modpost white list pattern adjustment · a5eb6a50
      Jan Beulich authored
      gcc puts data into .data.rel or .data.rel.* on some architectures (e.g.
      ia64) or under certain conditions, so whatever is legal relative to
      .data should also be legal for those other sections. Fixes a few
      modpost warnings on ia64.
      Signed-off-by: default avatarJan Beulich <jbeulich@novell.com>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      a5eb6a50
    • Sam Ravnborg's avatar
      kbuild: do section mismatch check on full vmlinux · 741f98fe
      Sam Ravnborg authored
      Previously we did do the check on the .o files used to link
      vmlinux but that failed to find questionable references across
      the .o files.
      Create a dedicated vmlinux.o file used only for section mismatch checks
      that uses the defualt linker script so section does not get renamed.
      
      The vmlinux.o may later be used as part of the the final link of vmlinux
      but for now it is used fo section mismatch only.
      For a defconfig build this is instant but for an allyesconfig this
      add two minutes to a full build (that anyways takes ~2 hours).
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      741f98fe
  2. 16 Jul, 2007 37 commits