Skip to content

Commit

Permalink
nds32: fix building failed if using elf toolchain.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greentime Hu committed Mar 16, 2018
1 parent c601a89 commit e115807
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/nds32/kernel/vdso/vdso.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e115807

Please sign in to comment.