From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>
Cc: Linux Kernel Development <linux-kernel@vger.kernel.org>,
Geert Uytterhoeven <geert@linux-m68k.org>
Subject: [PATCH 490] M68k: don't emit empty stack program header in vmlinux
Date: Sat, 2 Oct 2004 19:00:24 +0200 [thread overview]
Message-ID: <200410021700.i92H0Ovo021173@anakin.of.borg> (raw)
M68k: Recent versions of ld add an empty stack program header to the kernel
image, which makes it incompatible with current m68k bootstrap loaders.
Modify the linker script to make sure we see only the program headers that are
really needed. (from Roman Zippel)
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
--- linux-2.6.9-rc3/arch/m68k/kernel/vmlinux-std.lds 2004-05-24 11:13:22.000000000 +0200
+++ linux-m68k-2.6.9-rc3/arch/m68k/kernel/vmlinux-std.lds 2004-08-30 21:26:50.000000000 +0200
@@ -15,7 +15,7 @@ SECTIONS
SCHED_TEXT
*(.fixup)
*(.gnu.warning)
- } = 0x4e75
+ } :text = 0x4e75
. = ALIGN(16); /* Exception table */
__start___ex_table = .;
@@ -34,7 +34,7 @@ SECTIONS
.bss : { *(.bss) } /* BSS */
. = ALIGN(16);
- .data.cacheline_aligned : { *(.data.cacheline_aligned) }
+ .data.cacheline_aligned : { *(.data.cacheline_aligned) } :data
_edata = .; /* End of data section */
--- linux-2.6.9-rc3/arch/m68k/kernel/vmlinux.lds.S 2004-04-27 20:21:23.000000000 +0200
+++ linux-m68k-2.6.9-rc3/arch/m68k/kernel/vmlinux.lds.S 2004-08-30 21:26:50.000000000 +0200
@@ -1,5 +1,9 @@
#include <linux/config.h>
-
+PHDRS
+{
+ text PT_LOAD FILEHDR PHDRS FLAGS (7);
+ data PT_LOAD FLAGS (7);
+}
#ifdef CONFIG_SUN3
#include "vmlinux-sun3.lds"
#else
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
reply other threads:[~2004-10-02 17:02 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=200410021700.i92H0Ovo021173@anakin.of.borg \
--to=geert@linux-m68k.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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
all inboxes | Powered by JetHome®