Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754866AbbDHVKg (ORCPT ); Wed, 8 Apr 2015 17:10:36 -0400 Received: from blu004-omc1s33.hotmail.com ([65.55.116.44]:59667 "EHLO BLU004-OMC1S33.hotmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753630AbbDHVKf (ORCPT ); Wed, 8 Apr 2015 17:10:35 -0400 X-TMN: [kIN3BndkovFmM2bq5mXbiE0W3YWkZQXo] X-Originating-Email: [xili_gchen_5257@hotmail.com] Message-ID: Date: Thu, 9 Apr 2015 05:10:37 +0800 From: Chen Gang User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: realmz6@gmail.com, Richard Weinberger CC: adi-buildroot-devel@lists.sourceforge.net, "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] blackfin: Makefile: Skip reloc overflow issue when COMPILE_TEST enabled References: In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 08 Apr 2015 21:10:32.0873 (UTC) FILETIME=[73208990:01D07240] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2010 Lines: 56 After this patch, blackfin can pass allmodconfig building (if we treat it as allmodconfig). And next, I shall try to: - Send all related patches v2 for blackfin kernel within this month. - Fix blackfin gcc/binutils related issues within this month. Thanks. On 4/9/15 05:03, Chen Gang wrote: > 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 limitition is acceptable, so > it is not the real world issue, which should be skipped if COMPILE_TEST > enabled. > > > Signed-off-by: Chen Gang > --- > 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 > > -- Chen Gang Open, share, and attitude like air, water, and life which God blessed -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/