]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7324/1: modpost: Fix section warnings for ARM for many compilers
authorTony Lindgren <tony@atomide.com>
Tue, 14 Feb 2012 20:58:56 +0000 (21:58 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 15 Feb 2012 11:04:36 +0000 (11:04 +0000)
commitaca998e0e404ba55accb6dd7492a34a0ec2dd745
tree2fdbaf8bf120343c04a0db51eacca3d4b0ee0b19
parenta16d9cfd6562b4a9994907ac5a3dedd2d37ef9cf
ARM: 7324/1: modpost: Fix section warnings for ARM for many compilers

It turns out that many compilers don't show section warnings on ARM
currently because handling for ARM_CALL relocs are missing from
modpost.c.

Based on commit 0593f6f3 ([ARM] 3205/1: Handle new EABI relocations when
loading kernel modules) it seems that R_ARM_PC24, R_ARM_CALL and
R_ARM_JUMP24 can be handled the same way.

Note that at least Debian libc6-dev is missing defines for both
R_ARM_CALL and R_ARM_JUMP24 in /usr/include/elf.h. So for now
we need to define them in modpost.c if not defined.

Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Ben Hutchings <ben@decadent.org.uk>
Cc: Anders Kaseorg <andersk@ksplice.com>
Cc: Greg KH <gregkh@linuxfoundation.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
scripts/mod/modpost.c