]> err.no Git - linux-2.6/commit
[PATCH] kbuild: check SHT_REL sections
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Sat, 20 May 2006 22:00:26 +0000 (15:00 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 21 May 2006 19:59:21 +0000 (12:59 -0700)
commit2c1a51f39d9551a514d7a089d01c23c0c3a54ab8
treee938e986a1a6f41ac701ad231601d90d4c824ffb
parent92f63cd000059366af18712367216d96180e0ec0
[PATCH] kbuild: check SHT_REL sections

I found that modpost can not detect section mismatch on mips and i386.  On
mips64, the modpost (with r_info layout fix) can detect it.  The current
modpst only checks SHT_RELA section but I suppose SHT_REL section should be
checked also.  This patch does not contain r_info layout fix.  I'll post an
updated r_info layout fix on next mail.

Check SHT_REL sections as like as SHT_RELA sections to detect section
mismatch.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
scripts/mod/modpost.c
scripts/mod/modpost.h