All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] blackfin: Makefile: Skip reloc overflow issue when COMPILE_TEST enabled
@ 2015-04-08 21:05 Chen Gang
  2015-04-08 21:10 ` Richard Weinberger
  0 siblings, 1 reply; 21+ messages in thread
From: Chen Gang @ 2015-04-08 21:05 UTC (permalink / raw)
  To: realmz6, Richard Weinberger; +Cc: adi-buildroot-devel, linux-kernel

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 <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

^ permalink raw reply related	[flat|nested] 21+ messages in thread
* [PATCH] blackfin: Makefile: Skip reloc overflow issue when COMPILE_TEST enabled
@ 2015-04-08 21:07 Chen Gang
  0 siblings, 0 replies; 21+ messages in thread
From: Chen Gang @ 2015-04-08 21:07 UTC (permalink / raw)
  To: realmz6, Richard Weinberger; +Cc: adi-buildroot-devel, linux-kernel

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

^ permalink raw reply related	[flat|nested] 21+ messages in thread
* [PATCH] blackfin: Makefile: Skip reloc overflow issue when COMPILE_TEST enabled
@ 2015-04-08 21:05 Chen Gang
  0 siblings, 0 replies; 21+ messages in thread
From: Chen Gang @ 2015-04-08 21:05 UTC (permalink / raw)
  To: realmz6, Richard Weinberger; +Cc: adi-buildroot-devel, linux-kernel

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

^ permalink raw reply related	[flat|nested] 21+ messages in thread
* [PATCH] blackfin: Makefile: Skip reloc overflow issue when COMPILE_TEST enabled
@ 2015-04-08 21:03 Chen Gang
  2015-04-08 21:10 ` Chen Gang
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Chen Gang @ 2015-04-08 21:03 UTC (permalink / raw)
  To: realmz6, Richard Weinberger; +Cc: adi-buildroot-devel, linux-kernel

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 <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

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

end of thread, other threads:[~2015-07-01 15:35 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-08 21:05 [PATCH] blackfin: Makefile: Skip reloc overflow issue when COMPILE_TEST enabled 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
  -- 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: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

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.