public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kernel: Assembly: need add prefix for h8300 architecture.
@ 2013-08-26 10:42 Chen Gang
  2013-08-26 10:46 ` Chen Gang
  0 siblings, 1 reply; 8+ messages in thread
From: Chen Gang @ 2013-08-26 10:42 UTC (permalink / raw)
  To: Geert Uytterhoeven, Yoshinori Sato, James Hogan, Rusty Russell,
	Takashi Iwai
  Cc: linux-kernel@vger.kernel.org

Need add related prefix for h8300, or can not pass compiling by the
latest linker.

The related error (allmodconfig for h8300):

  /usr/local/bin/h8300-gchen-elf-ld: h8300 architecture of input file `usr/initramfs_data.o' is incompatible with h8300h output
  /usr/local/bin/h8300-gchen-elf-ld: h8300 architecture of input file `kernel/modsign_certificate.o' is incompatible with h8300h output

The cross-compiler's information:

  [root@dhcp122 linux-next]# /usr/local/bin/h8300-gchen-elf-ld -v
  GNU ld (GNU Binutils) 2.22
  [root@dhcp122 linux-next]# /usr/local/bin/h8300-gchen-elf-as -v
  GNU assembler version 2.22 (h8300-gchen-elf) using BFD version (GNU Binutils) 2.22
  
  [root@dhcp122 linux-next]# /usr/local/bin/h8300-gchen-elf-gcc -v
  Using built-in specs.
  COLLECT_GCC=/usr/local/bin/h8300-gchen-elf-gcc
  COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/h8300-gchen-elf/4.8.0/lto-wrapper
  Target: h8300-gchen-elf
  Configured with: ../gcc-4.8.0/configure --target=h8300-gchen-elf --without-header --disable-nls --enable-language=c --disable-threads --disable-shared --enable-werror=no
  Thread model: single
  gcc version 4.8.0 (GCC) 


Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
 kernel/modsign_certificate.S |    7 +++++++
 usr/initramfs_data.S         |    7 +++++++
 2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/kernel/modsign_certificate.S b/kernel/modsign_certificate.S
index 4a9a86d..d24acac 100644
--- a/kernel/modsign_certificate.S
+++ b/kernel/modsign_certificate.S
@@ -1,5 +1,12 @@
 #include <linux/export.h>
 
+#if defined(CONFIG_CPU_H8300H)
+	.h8300h
+#endif
+#if defined(CONFIG_CPU_H8S)
+	.h8300s
+#endif
+
 #define GLOBAL(name)	\
 	.globl VMLINUX_SYMBOL(name);	\
 	VMLINUX_SYMBOL(name):
diff --git a/usr/initramfs_data.S b/usr/initramfs_data.S
index c14322d..6a6c106 100644
--- a/usr/initramfs_data.S
+++ b/usr/initramfs_data.S
@@ -24,6 +24,13 @@
 #include <linux/stringify.h>
 #include <asm-generic/vmlinux.lds.h>
 
+#if defined(CONFIG_CPU_H8300H)
+	.h8300h
+#endif
+#if defined(CONFIG_CPU_H8S)
+	.h8300s
+#endif
+
 .section .init.ramfs,"a"
 __irf_start:
 .incbin __stringify(INITRAMFS_IMAGE)
-- 
1.7.7.6

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

end of thread, other threads:[~2013-08-27 12:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-26 10:42 [PATCH] kernel: Assembly: need add prefix for h8300 architecture Chen Gang
2013-08-26 10:46 ` Chen Gang
2013-08-27  2:14   ` Chen Gang
2013-08-27  5:24     ` Chen Gang
2013-08-27  5:35       ` [PATCH v2] h8300: Makefile: add "-no-warn-mismatch" to linker to avoid linking error Chen Gang
2013-08-27  5:12   ` [PATCH] kernel: Assembly: need add prefix for h8300 architecture Rusty Russell
2013-08-27  6:22     ` Chen Gang
2013-08-27 12:05       ` Chen Gang

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