lkml.org 
[lkml]   [2009]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/2] h8300: use .head.text for compressed bootloader.
Date
Signed-off-by: Tim Abbott <tabbott@mit.edu>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
---
arch/h8300/boot/compressed/head.S | 3 ++-
arch/h8300/boot/compressed/vmlinux.lds | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/h8300/boot/compressed/head.S b/arch/h8300/boot/compressed/head.S
index 985a81a..a821a1b 100644
--- a/arch/h8300/boot/compressed/head.S
+++ b/arch/h8300/boot/compressed/head.S
@@ -5,11 +5,12 @@
*/

.h8300h
+#include <linux/init.h>
#include <linux/linkage.h>

#define SRAM_START 0xff4000

- .section .text.startup
+ __HEAD
.global startup
startup:
mov.l #SRAM_START+0x8000, sp
diff --git a/arch/h8300/boot/compressed/vmlinux.lds b/arch/h8300/boot/compressed/vmlinux.lds
index 65e2a0d..98a492e 100644
--- a/arch/h8300/boot/compressed/vmlinux.lds
+++ b/arch/h8300/boot/compressed/vmlinux.lds
@@ -4,7 +4,7 @@ SECTIONS
{
__stext = . ;
__text = .;
- *(.text.startup)
+ *(.head.text)
*(.text)
__etext = . ;
}
--
1.6.2.1


\
 
 \ /
  Last update: 2009-05-01 01:51    [W:0.045 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site