diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-08-16 11:21:02 -0400 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-08-30 12:45:34 -0400 |
commit | 35fa91eed817d2c65c59ef5a9737011313be6ac0 (patch) | |
tree | 096f2f8bf219fb1b04f28c5fc104e6331c84695a /arch/arm/include/asm | |
parent | 3eab887a55424fc2c27553b7bfe32330df83f7b8 (diff) |
ARM: kernel: merge core and init PLTs
The PLT code uses a separate .init.plt section to allocate PLT entries
for jump and call instructions in __init code. However, even for fairly
sizable modules like mac80211.ko, we only end up with a couple of PLT
entries in the .init section, and so we can simplify the code
significantly by emitting all PLT entries into the same section.
Tested-by: Jongsung Kim <neidhard.kim@lge.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'arch/arm/include/asm')
-rw-r--r-- | arch/arm/include/asm/module.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/include/asm/module.h b/arch/arm/include/asm/module.h index e358b7966c06..464748b9fd7d 100644 --- a/arch/arm/include/asm/module.h +++ b/arch/arm/include/asm/module.h | |||
@@ -23,10 +23,8 @@ struct mod_arch_specific { | |||
23 | struct unwind_table *unwind[ARM_SEC_MAX]; | 23 | struct unwind_table *unwind[ARM_SEC_MAX]; |
24 | #endif | 24 | #endif |
25 | #ifdef CONFIG_ARM_MODULE_PLTS | 25 | #ifdef CONFIG_ARM_MODULE_PLTS |
26 | struct elf32_shdr *core_plt; | 26 | struct elf32_shdr *plt; |
27 | struct elf32_shdr *init_plt; | 27 | int plt_count; |
28 | int core_plt_count; | ||
29 | int init_plt_count; | ||
30 | #endif | 28 | #endif |
31 | }; | 29 | }; |
32 | 30 | ||