diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-01-28 20:13:13 +0100 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2008-01-28 23:21:19 +0100 |
commit | e241a630374e06aecdae2884af8b652d3b4d6c37 (patch) | |
tree | 9b2bdf28122fe59a3479b7dcba2978db297409f0 /fs/stat.c | |
parent | 588ccd732ba2d32db8228802ef9283b583d3395f (diff) | |
download | linux-e241a630374e06aecdae2884af8b652d3b4d6c37.tar.bz2 |
kbuild: warn about ld added unique sections
If there is a mixture of specifying sections for code in gcc
and assembler then if the assembler code do not add
the "ax" flags the linker will see this as two different sections
and generate unique sections for each. ld does so by adding a dot
and a number.
Teach modpost to warn if a section shows up that match this
pattern - but do this only for non-debug sections.
It will result in warnings like this:
WARNING: vmlinux.o (.sched.text.1): unexpected section name.
The (.[number]+) following section name are ld generated and not expected.
Did you forget to use "ax"/"aw" in a .S file?
Note that for example <linux/init.h> contains
section definitions for use in .S files.
All warnings seen with a defconfig build for:
x86 (32+64bit) and sparc64 has been fixed (via respective maintainers).
arm, powerpc (64 bit), s390 (32 bit), ia64, alpha, sh4 checked - no
warnings seen with a defconfig build.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'fs/stat.c')
0 files changed, 0 insertions, 0 deletions