public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH} H8/300 update (2/9) ldscripts fix
@ 2004-05-11 16:36 Yoshinori Sato
  2004-05-12  0:10 ` Andrew Morton
  2004-05-12  0:51 ` Andrew Morton
  0 siblings, 2 replies; 4+ messages in thread
From: Yoshinori Sato @ 2004-05-11 16:36 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux kernel Mailing List

- symbol prefix (use h8300 and v850) support
- include headers

-- 
Yoshinori Sato
<ysato@users.sourceforge.jp>

diff -Nru linux-2.6.6/arch/h8300/kernel/vmlinux.lds.S linux-2.6.6-h8300/arch/h8300/kernel/vmlinux.lds.S
--- linux-2.6.6/arch/h8300/kernel/vmlinux.lds.S	2004-05-11 14:30:44.000000000 +0900
+++ linux-2.6.6-h8300/arch/h8300/kernel/vmlinux.lds.S	2004-05-11 21:04:14.000000000 +0900
@@ -1,3 +1,5 @@
+#include <asm-generic/vmlinux.lds.h>
+#include <asm/thread_info.h>
 #include <linux/config.h>
 
 #ifdef CONFIG_H8300H_GENERIC
diff -Nru linux-2.6.6/include/asm-generic/vmlinux.lds.h linux-2.6.6-h8300/include/asm-generic/vmlinux.lds.h
--- linux-2.6.6/include/asm-generic/vmlinux.lds.h	2004-05-11 14:30:47.000000000 +0900
+++ linux-2.6.6-h8300/include/asm-generic/vmlinux.lds.h	2004-05-11 23:03:42.000000000 +0900
@@ -1,7 +1,15 @@
+#include <linux/config.h>
+
 #ifndef LOAD_OFFSET
 #define LOAD_OFFSET 0
 #endif
 
+#if defined(CONFIG_H8300) || defined(CONFIG_V850)
+#define SYMBOL(_sym_) _##_sym_
+#else
+#define SYMBOL(_sym_) _sym_
+#endif
+
 #define RODATA								\
 	.rodata           : AT(ADDR(.rodata) - LOAD_OFFSET) {		\
 		*(.rodata) *(.rodata.*)					\
@@ -14,30 +22,30 @@
 									\
 	/* Kernel symbol table: Normal symbols */			\
 	__ksymtab         : AT(ADDR(__ksymtab) - LOAD_OFFSET) {		\
-		__start___ksymtab = .;					\
+		SYMBOL(__start___ksymtab) = .;				\
 		*(__ksymtab)						\
-		__stop___ksymtab = .;					\
+		SYMBOL(__stop___ksymtab) = .;				\
 	}								\
 									\
 	/* Kernel symbol table: GPL-only symbols */			\
 	__ksymtab_gpl     : AT(ADDR(__ksymtab_gpl) - LOAD_OFFSET) {	\
-		__start___ksymtab_gpl = .;				\
+		SYMBOL(__start___ksymtab_gpl) = .;			\
 		*(__ksymtab_gpl)					\
-		__stop___ksymtab_gpl = .;				\
+		SYMBOL(__stop___ksymtab_gpl) = .;			\
 	}								\
 									\
 	/* Kernel symbol table: Normal symbols */			\
 	__kcrctab         : AT(ADDR(__kcrctab) - LOAD_OFFSET) {		\
-		__start___kcrctab = .;					\
+		SYMBOL(__start___kcrctab) = .;				\
 		*(__kcrctab)						\
-		__stop___kcrctab = .;					\
+		SYMBOL(__stop___kcrctab) = .;				\
 	}								\
 									\
 	/* Kernel symbol table: GPL-only symbols */			\
 	__kcrctab_gpl     : AT(ADDR(__kcrctab_gpl) - LOAD_OFFSET) {	\
-		__start___kcrctab_gpl = .;				\
+		SYMBOL(__start___kcrctab_gpl) = .;			\
 		*(__kcrctab_gpl)					\
-		__stop___kcrctab_gpl = .;				\
+		SYMBOL(__stop___kcrctab_gpl) = .;			\
 	}								\
 									\
 	/* Kernel symbol table: strings */				\
@@ -47,12 +55,12 @@
 
 #define SECURITY_INIT							\
 	.security_initcall.init : {					\
-		__security_initcall_start = .;				\
+		SYMBOL(__security_initcall_start) = .;			\
 		*(.security_initcall.init) 				\
 		__security_initcall_end = .;				\
 	}
 
 #define SCHED_TEXT							\
-		__scheduling_functions_start_here = .;			\
+		SYMBOL(__scheduling_functions_start_here) = .;		\
 		*(.sched.text)						\
-		__scheduling_functions_end_here = .;
+		SYMBOL(__scheduling_functions_end_here) = .;

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

end of thread, other threads:[~2004-05-12 14:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-11 16:36 [PATCH} H8/300 update (2/9) ldscripts fix Yoshinori Sato
2004-05-12  0:10 ` Andrew Morton
2004-05-12  0:51 ` Andrew Morton
2004-05-12 14:19   ` Yoshinori Sato

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox