linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] ARM: move cpu_resume() to .text section
@ 2015-03-24 16:10 Ard Biesheuvel
  2015-03-24 16:10 ` [PATCH 1/3] " Ard Biesheuvel
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Ard Biesheuvel @ 2015-03-24 16:10 UTC (permalink / raw)
  To: linux-arm-kernel

A couple of the ARM sleep.S files put the resume code in the data
section. This was originally done for convenience, so that the
data it touches is always in range of a simple 'adr' PC relative
reference. However, code in the data section is problematic for
large kernels, where branched go out of range and the linker
is unaware that the contents of .data are in fact executable code
for which it could emit veneers.

So instead, move everything back to .text, and fix up the one
remaining straight adr reference by changing it into an explicit
PC relative reference.

Note that we could probably drop the b_far/bl_far patches if we
merge these patches instead.

Ard Biesheuvel (3):
  ARM: move cpu_resume() to .text section
  ARM: exynos: move resume code to .text section
  ARM: s5pv210: move resume code to .text section

 arch/arm/kernel/sleep.S       | 15 ++++++---------
 arch/arm/mach-exynos/sleep.S  |  9 +--------
 arch/arm/mach-s5pv210/sleep.S |  2 +-
 3 files changed, 8 insertions(+), 18 deletions(-)

-- 
1.8.3.2

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-03-24 17:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-24 16:10 [PATCH 0/3] ARM: move cpu_resume() to .text section Ard Biesheuvel
2015-03-24 16:10 ` [PATCH 1/3] " Ard Biesheuvel
2015-03-24 16:27   ` Nicolas Pitre
2015-03-24 17:23   ` Sudeep Holla
2015-03-24 16:10 ` [PATCH 2/3] ARM: exynos: move resume code " Ard Biesheuvel
2015-03-24 16:33   ` Nicolas Pitre
2015-03-24 16:34     ` Ard Biesheuvel
2015-03-24 16:10 ` [PATCH 3/3] ARM: s5pv210: " Ard Biesheuvel
2015-03-24 16:36   ` Nicolas Pitre

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).