Files
android_kernel_xiaomi_sm8450/arch/arm/include/asm
Andrey Ryabinin 55f0fb6adb ARM: 8127/1: module: add support for R_ARM_TARGET1 relocations
Kernel module build with GCOV profiling fails to load with the
following error:

 $ insmod test_module.ko
   test_module: unknown relocation: 38
   insmod: can't insert 'test_module.ko': invalid module format

This happens because constructor pointers in the .init_array section
have not supported R_ARM_TARGET1 relocation type.

Documentation (ELF for the ARM Architecture) says:
    "The relocation must be processed either in the same way as R_ARM_REL32 or
     as R_ARM_ABS32: a virtual platform must specify which method is used."

Since kernel expects to see absolute addresses in .init_array R_ARM_TARGET1
relocation type should be treated the same way as R_ARM_ABS32.

Signed-off-by: Andrey Ryabinin <a.ryabinin@samsung.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2014-08-27 15:40:11 +01:00
..
2014-04-18 11:40:32 +02:00
2014-04-18 11:40:32 +02:00
2014-04-18 11:40:32 +02:00
2012-03-28 18:30:01 +01:00
2014-06-02 09:20:18 +01:00
2012-07-05 09:50:55 +01:00
2012-09-14 13:53:39 +00:00
2013-04-17 21:38:10 +02:00
2014-02-25 11:33:37 +00:00
2012-07-24 15:27:28 +08:00
2013-01-23 13:29:17 -05:00
2014-06-01 01:17:12 +01:00
2013-07-08 22:08:51 +01:00
2013-11-15 09:32:16 +09:00
2014-05-27 15:58:49 +02:00
2014-06-01 01:17:12 +01:00
2014-02-25 11:33:37 +00:00
2014-08-09 14:07:53 +01:00
2014-03-18 16:39:40 -04:00