From: Chen Gang <gang.chen@asianux.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>,
Yoshinori Sato <ysato@users.sourceforge.jp>,
James Hogan <james.hogan@imgtec.com>,
Rusty Russell <rusty@rustcorp.com.au>,
Takashi Iwai <tiwai@suse.de>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: [PATCH v2] h8300: Makefile: add "-no-warn-mismatch" to linker to avoid linking error.
Date: Tue, 27 Aug 2013 13:35:17 +0800 [thread overview]
Message-ID: <521C3A95.7020006@asianux.com> (raw)
In-Reply-To: <521C3820.9010102@asianux.com>
Need add "-no-warn-mismatch" to avoid the linking error, or assembly
files which are outside of the "arch/h8300" can not pass compiling.
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>
---
arch/h8300/Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/h8300/Makefile b/arch/h8300/Makefile
index a556447..3ad1369 100644
--- a/arch/h8300/Makefile
+++ b/arch/h8300/Makefile
@@ -26,7 +26,7 @@ model-$(CONFIG_ROMKERNEL) := rom
MODEL := $(model-y)
cflags-$(CONFIG_CPU_H8300H) := -mh
-ldflags-$(CONFIG_CPU_H8300H) := -mh8300helf
+ldflags-$(CONFIG_CPU_H8300H) := -mh8300helf -no-warn-mismatch
cflags-$(CONFIG_CPU_H8S) := -ms
ldflags-$(CONFIG_CPU_H8S) := -mh8300self
--
1.7.7.6
next prev parent reply other threads:[~2013-08-27 5:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Chen Gang [this message]
2013-08-27 5:12 ` Rusty Russell
2013-08-27 6:22 ` Chen Gang
2013-08-27 12:05 ` Chen Gang
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=521C3A95.7020006@asianux.com \
--to=gang.chen@asianux.com \
--cc=geert@linux-m68k.org \
--cc=james.hogan@imgtec.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
--cc=tiwai@suse.de \
--cc=ysato@users.sourceforge.jp \
/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.