mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] nds32: fix building failed if using elf toolchain.
@ 2018-03-07 10:11 Greentime Hu
  0 siblings, 0 replies; only message in thread
From: Greentime Hu @ 2018-03-07 10:11 UTC (permalink / raw)
  To: linux-kernel, arnd, greentime, green.hu

OUTPUT_FORMAT is not necessary here and the elf toolchain doesn't
support these formats. Since kernel should be built pass with elf
or Linux toolchain. This can be removed from vdso.ld.S

These are the built failed messages.
  VDSOL   arch/nds32/kernel/vdso/vdso.so.dbg
  /home/users/greentime/tmp/nds32le-elf-newlib-v3-upstream-b224/bin/../lib/gcc/nds32le-elf/8.0.1/../../../../nds32le-elf/bin/ld:
  target elf32-nds32le-linux not found
  collect2: error: ld returned 1 exit status
  make[1]: *** [arch/nds32/kernel/vdso/vdso.so.dbg] Error 1
  make: *** [vdso_prepare] Error 2

Signed-off-by: Greentime Hu <greentime@andestech.com>
---
 arch/nds32/kernel/vdso/vdso.lds.S | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/nds32/kernel/vdso/vdso.lds.S b/arch/nds32/kernel/vdso/vdso.lds.S
index 36630352ee02..1f2b16004594 100644
--- a/arch/nds32/kernel/vdso/vdso.lds.S
+++ b/arch/nds32/kernel/vdso/vdso.lds.S
@@ -8,7 +8,6 @@
 #include <asm/page.h>
 #include <asm/vdso.h>
 
-OUTPUT_FORMAT("elf32-nds32le-linux", "elf32-nds32be-linux", "elf32-nds32le-linux")
 OUTPUT_ARCH(nds32)
 
 SECTIONS
-- 
2.16.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-03-07 10:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-07 10:11 [PATCH] nds32: fix building failed if using elf toolchain Greentime Hu

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®