From: Chen Gang <xili_gchen_5257@hotmail.com>
To: realmz6@gmail.com, Richard Weinberger <richard.weinberger@gmail.com>
Cc: adi-buildroot-devel@lists.sourceforge.net,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: [PATCH] blackfin: Makefile: Skip reloc overflow issue when COMPILE_TEST enabled
Date: Thu, 9 Apr 2015 05:05:34 +0800 [thread overview]
Message-ID: <BLU436-SMTP290324839AA3807DCF0C0EB9FC0@phx.gbl> (raw)
l1_text is at L1_CODE_START (e.g. for bf533, 0xff800000). If the kernel
is too big, it may be overwritten, the related issue:
LD init/built-in.o
init/built-in.o: In function `do_early_param':
init/main.c:(.init.text+0xe0): relocation truncated to fit: R_BFIN_PCREL24 against symbol `strcmp' defined in .l1.text section in arch/blackfin/lib/lib.a(strcmp.o)
init/main.c:(.init.text+0x10e): relocation truncated to fit: R_BFIN_PCREL24 against symbol `strcmp' defined in .l1.text section in arch/blackfin/lib/lib.a(strcmp.o)
init/built-in.o: In function `unknown_bootoption':
blackfin is for embedded system, the size limitation is acceptable, so
it is not the real world issue, which should be skipped if COMPILE_TEST
enabled.
Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
---
arch/blackfin/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/blackfin/Makefile b/arch/blackfin/Makefile
index 2ece4e3..e5195b4 100644
--- a/arch/blackfin/Makefile
+++ b/arch/blackfin/Makefile
@@ -20,6 +20,9 @@ endif
KBUILD_AFLAGS += $(call cc-option,-mno-fdpic)
KBUILD_CFLAGS_MODULE += -mlong-calls
LDFLAGS += -m elf32bfin
+ifeq ($(CONFIG_COMPILE_TEST),y)
+LDFLAGS += --noinhibit-exec
+endif
KBUILD_DEFCONFIG := BF537-STAMP_defconfig
--
1.9.3
next reply other threads:[~2015-04-08 21:05 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-08 21:05 Chen Gang [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-04-08 21:07 Chen Gang
2015-04-08 21:05 Chen Gang
2015-04-08 21:10 ` Richard Weinberger
2015-04-08 21:16 ` Chen Gang
2015-04-08 21:19 ` Richard Weinberger
2015-04-09 13:15 ` Chen Gang
2015-04-08 21:03 Chen Gang
2015-04-08 21:10 ` Chen Gang
2015-04-08 21:12 ` Richard Weinberger
2015-04-09 13:28 ` Chen Gang
2015-04-09 13:38 ` Richard Weinberger
2015-04-09 23:14 ` Chen Gang
2015-04-22 9:00 ` Steven Miao
2015-04-22 14:32 ` Chen Gang
2015-04-23 2:51 ` Steven Miao
2015-04-23 14:30 ` Chen Gang
2015-04-24 8:20 ` Steven Miao
2015-04-24 14:28 ` Chen Gang
[not found] ` <5525994D.6090901@hotmail.com>
2015-07-01 15:31 ` Chen Gang
2015-07-01 15:36 ` 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=BLU436-SMTP290324839AA3807DCF0C0EB9FC0@phx.gbl \
--to=xili_gchen_5257@hotmail.com \
--cc=adi-buildroot-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=realmz6@gmail.com \
--cc=richard.weinberger@gmail.com \
/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®