From: John David Anglin <dave.anglin@bell.net>
To: linux-parisc <linux-parisc@vger.kernel.org>
Cc: James Bottomley <James.Bottomley@hansenpartnership.com>,
Guy Martin <gmsoft@tuxicoman.be>
Subject: [PATCH] PARISC: fix boot failure on 32-bit systems caused by branch stubs placed before .text
Date: Thu, 17 May 2012 10:34:34 -0400 [thread overview]
Message-ID: <4FB50C7A.7050409@bell.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 486 bytes --]
In certain configurations, the resulting kernel becomes too large to
boot because
the linker places the long branch stubs for the merged .text section at
the very start
of the image. As a result, the initial transfer of control jumps to an
unexpected
location. Fix this by placing the head text in a separate section so
the stubs for
.text are not at the start of the image.
Signed-off-by: John David Anglin <dave.anglin@bell.net>
--
John David Anglin dave.anglin@bell.net
[-- Attachment #2: vmlinux.lds.S.diff.txt --]
[-- Type: text/plain, Size: 681 bytes --]
arch/parisc/kernel/vmlinux.lds.S | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/parisc/kernel/vmlinux.lds.S b/arch/parisc/kernel/vmlinux.lds.S
index fa6f2b8..64a9998 100644
--- a/arch/parisc/kernel/vmlinux.lds.S
+++ b/arch/parisc/kernel/vmlinux.lds.S
@@ -50,8 +50,10 @@ SECTIONS
. = KERNEL_BINARY_TEXT_START;
_text = .; /* Text and read-only data */
- .text ALIGN(16) : {
+ .head ALIGN(16) : {
HEAD_TEXT
+ } = 0
+ .text ALIGN(16) : {
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
@@ -65,7 +67,7 @@ SECTIONS
*(.fixup)
*(.lock.text) /* out-of-line lock text */
*(.gnu.warning)
- } = 0
+ }
/* End of text section */
_etext = .;
reply other threads:[~2012-05-17 14:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4FB50C7A.7050409@bell.net \
--to=dave.anglin@bell.net \
--cc=James.Bottomley@hansenpartnership.com \
--cc=gmsoft@tuxicoman.be \
--cc=linux-parisc@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.