From: ard.biesheuvel@linaro.org (Ard Biesheuvel)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 0/8] ARM kernel size fixes
Date: Fri, 13 Mar 2015 13:07:24 +0100 [thread overview]
Message-ID: <1426248452-4773-1-git-send-email-ard.biesheuvel@linaro.org> (raw)
This series is a suggested approach to preventing linker failures on large
kernels. It is somewhat unpolished, and posted for comments/testing primarily.
The issues were found and reported by Arnd Bergmann, and these patches are
loosely based on his initial approach to work around them.
Changes since v1:
- Updated PROCINFO patch (#1) to refer to the base of the struct by name, and
simplify the calling code (rmk)
- Updated b_far/bl_far patch (#3) to remove ARM/THUMB alternatives and use a
conditionally defined PC_BIAS instead. Also added b_abs/bl_abs versions,
which can only be used for absolute branches but can be implemented in fewer
instructions. Added conditional branch support as well.
- introduce (#6) and use (#7) the .text.fixup input section which gets emitted
after each .text section for each .o
- added patch #8 that allows the kallsyms data to be moved to .data
Ard Biesheuvel (8):
ARM: replace PROCINFO embedded branch with relative offset
ARM: move HYP text to end of .text section
ARM: add macro to perform far branches (b/bl)
ARM: use bl_far to call __hyp_stub_install_secondary from the .data
section
ARM: move the .idmap.text section closer to .head.text
asm-generic: introduce .text.fixup input section
ARM: keep .text and .fixup regions together
kallsyms: allow kallsyms data to reside in the .data section
arch/arm/Kconfig | 1 +
arch/arm/include/asm/assembler.h | 83 +++++++++++++++++++++++++++++++++++
arch/arm/include/asm/futex.h | 2 +-
arch/arm/include/asm/uaccess.h | 10 ++---
arch/arm/include/asm/word-at-a-time.h | 2 +-
arch/arm/kernel/entry-armv.S | 2 +-
arch/arm/kernel/head.S | 14 +++---
arch/arm/kernel/sleep.S | 2 +-
arch/arm/kernel/swp_emulate.c | 2 +-
arch/arm/kernel/vmlinux.lds.S | 15 ++++---
arch/arm/kvm/init.S | 5 +--
arch/arm/kvm/interrupts.S | 4 +-
arch/arm/lib/clear_user.S | 2 +-
arch/arm/lib/copy_to_user.S | 2 +-
arch/arm/lib/csumpartialcopyuser.S | 2 +-
arch/arm/mm/alignment.c | 6 +--
arch/arm/mm/proc-arm1020.S | 4 +-
arch/arm/mm/proc-arm1020e.S | 4 +-
arch/arm/mm/proc-arm1022.S | 4 +-
arch/arm/mm/proc-arm1026.S | 4 +-
arch/arm/mm/proc-arm720.S | 4 +-
arch/arm/mm/proc-arm740.S | 4 +-
arch/arm/mm/proc-arm7tdmi.S | 4 +-
arch/arm/mm/proc-arm920.S | 4 +-
arch/arm/mm/proc-arm922.S | 4 +-
arch/arm/mm/proc-arm925.S | 4 +-
arch/arm/mm/proc-arm926.S | 4 +-
arch/arm/mm/proc-arm940.S | 4 +-
arch/arm/mm/proc-arm946.S | 4 +-
arch/arm/mm/proc-arm9tdmi.S | 4 +-
arch/arm/mm/proc-fa526.S | 4 +-
arch/arm/mm/proc-feroceon.S | 5 ++-
arch/arm/mm/proc-macros.S | 4 ++
arch/arm/mm/proc-mohawk.S | 4 +-
arch/arm/mm/proc-sa110.S | 4 +-
arch/arm/mm/proc-sa1100.S | 4 +-
arch/arm/mm/proc-v6.S | 4 +-
arch/arm/mm/proc-v7.S | 28 ++++++------
arch/arm/mm/proc-v7m.S | 4 +-
arch/arm/mm/proc-xsc3.S | 4 +-
arch/arm/mm/proc-xscale.S | 4 +-
arch/arm/nwfpe/entry.S | 2 +-
include/asm-generic/vmlinux.lds.h | 14 +++++-
init/Kconfig | 4 ++
scripts/kallsyms.c | 2 +-
45 files changed, 200 insertions(+), 101 deletions(-)
--
1.8.3.2
next reply other threads:[~2015-03-13 12:07 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-13 12:07 Ard Biesheuvel [this message]
2015-03-13 12:07 ` [PATCH v2 1/8] ARM: replace PROCINFO embedded branch with relative offset Ard Biesheuvel
2015-04-19 16:59 ` Joachim Eastwood
2015-04-19 17:08 ` Russell King - ARM Linux
2015-04-19 17:41 ` Ard Biesheuvel
2015-04-19 19:28 ` Russell King - ARM Linux
2015-04-19 19:45 ` Joachim Eastwood
2015-04-19 21:52 ` Ard Biesheuvel
2015-04-19 19:24 ` Joachim Eastwood
2015-03-13 12:07 ` [PATCH v2 2/8] ARM: move HYP text to end of .text section Ard Biesheuvel
2015-03-13 12:07 ` [PATCH v2 3/8] ARM: add macro to perform far branches (b/bl) Ard Biesheuvel
2015-03-13 16:40 ` Russell King - ARM Linux
2015-03-17 20:35 ` Ard Biesheuvel
2015-03-18 10:07 ` Ard Biesheuvel
2015-03-19 9:01 ` [PATCH] " Ard Biesheuvel
2015-03-13 12:07 ` [PATCH v2 4/8] ARM: use bl_far to call __hyp_stub_install_secondary from the .data section Ard Biesheuvel
2015-03-13 12:07 ` [PATCH v2 5/8] ARM: move the .idmap.text section closer to .head.text Ard Biesheuvel
2015-03-13 12:07 ` [PATCH v2 6/8] asm-generic: introduce .text.fixup input section Ard Biesheuvel
2015-03-18 18:58 ` Arnd Bergmann
2015-03-13 12:07 ` [PATCH v2 7/8] ARM: keep .text and .fixup regions together Ard Biesheuvel
2015-03-13 12:07 ` [PATCH v2 8/8] kallsyms: allow kallsyms data to reside in the .data section Ard Biesheuvel
2015-03-18 7:54 ` [PATCH v2 0/8] ARM kernel size fixes Ard Biesheuvel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1426248452-4773-1-git-send-email-ard.biesheuvel@linaro.org \
--to=ard.biesheuvel@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).