Re: Detecting section mismatches in vmlinux

2007-02-25 Thread Atsushi Nemoto
On Sun, 25 Feb 2007 00:25:27 +0100, Sam Ravnborg <[EMAIL PROTECTED]> wrote: > Attached patch does: > 1) Do not check vmlinux but check all .o files that is used to create vmlinux > 2) Teach modpost to skip non-elf files (.a files and empty .o files etc) > > With this change we get proper check of

Re: Detecting section mismatches in vmlinux

2007-02-25 Thread Atsushi Nemoto
On Sun, 25 Feb 2007 00:25:27 +0100, Sam Ravnborg [EMAIL PROTECTED] wrote: Attached patch does: 1) Do not check vmlinux but check all .o files that is used to create vmlinux 2) Teach modpost to skip non-elf files (.a files and empty .o files etc) With this change we get proper check of

Re: Detecting section mismatches in vmlinux

2007-02-24 Thread Sam Ravnborg
Hi Atsushi-san On Sun, Feb 25, 2007 at 03:53:15AM +0900, Atsushi Nemoto wrote: > On Thu, 22 Feb 2007 00:57:28 +0900 (JST), Atsushi Nemoto <[EMAIL PROTECTED]> > wrote: > > $ ../build-i386/scripts/mod/modpost ../build-i386/mm/built-in.o > > WARNING: ../build-i386/mm/built-in.o - Section mismatch:

Re: Detecting section mismatches in vmlinux

2007-02-24 Thread Sam Ravnborg
On Sun, Feb 25, 2007 at 03:53:15AM +0900, Atsushi Nemoto wrote: > > This is a dirty hack to check all built-in.o just after linking > vmlinux. But this can not detect mismatches in libs.a files, and > modpost fails with "... is truncated" message on empty built-in.o > files. > > Maybe checking

Re: Detecting section mismatches in vmlinux

2007-02-24 Thread Atsushi Nemoto
On Thu, 22 Feb 2007 00:57:28 +0900 (JST), Atsushi Nemoto <[EMAIL PROTECTED]> wrote: > $ ../build-i386/scripts/mod/modpost ../build-i386/mm/built-in.o > WARNING: ../build-i386/mm/built-in.o - Section mismatch: reference to > .init.data:initkmem_list3 from .text between 'set_up_list3s' (at offset

Re: Detecting section mismatches in vmlinux

2007-02-24 Thread Atsushi Nemoto
On Thu, 22 Feb 2007 00:57:28 +0900 (JST), Atsushi Nemoto [EMAIL PROTECTED] wrote: $ ../build-i386/scripts/mod/modpost ../build-i386/mm/built-in.o WARNING: ../build-i386/mm/built-in.o - Section mismatch: reference to .init.data:initkmem_list3 from .text between 'set_up_list3s' (at offset

Re: Detecting section mismatches in vmlinux

2007-02-24 Thread Sam Ravnborg
On Sun, Feb 25, 2007 at 03:53:15AM +0900, Atsushi Nemoto wrote: This is a dirty hack to check all built-in.o just after linking vmlinux. But this can not detect mismatches in libs.a files, and modpost fails with ... is truncated message on empty built-in.o files. Maybe checking at each

Re: Detecting section mismatches in vmlinux

2007-02-24 Thread Sam Ravnborg
Hi Atsushi-san On Sun, Feb 25, 2007 at 03:53:15AM +0900, Atsushi Nemoto wrote: On Thu, 22 Feb 2007 00:57:28 +0900 (JST), Atsushi Nemoto [EMAIL PROTECTED] wrote: $ ../build-i386/scripts/mod/modpost ../build-i386/mm/built-in.o WARNING: ../build-i386/mm/built-in.o - Section mismatch: