



or1k-elf-ld: target elf32-or32 not found
by meitoku on Mar 24, 2014 |
meitoku
Posts: 26 Joined: Nov 21, 2013 Last seen: Oct 18, 2015 |
||
Hello everyone, I tried to build openrisc linux kernel with newlib toolchain on Ubuntu 13.10. Original guide: http://www.rte.se/blog/blogg-modesty-corex/installing-linux/2.11 First I downloaded the source code:
export CROSS_COMPILE=or1k-elf-
I typed:
make defconfig
Then I got this error:
LD init/built-in.o
Is there any solution to this problem?
|
RE: or1k-elf-ld: target elf32-or32 not found
by fjullien on Mar 24, 2014 |
fjullien
Posts: 5 Joined: Mar 12, 2014 Last seen: Jan 23, 2018 |
||
Hi,
In arch/openrisc/kernel/vmlinux.lds.S, replace elf32-or32 by elf32-or1k. Franck. |
RE: or1k-elf-ld: target elf32-or32 not found
by stekern on Mar 24, 2014 |
stekern
Posts: 84 Joined: Apr 28, 2009 Last seen: Nov 10, 2016 |
||
Although not a perfect solution to the problem,
you can get it to work by changing this line: http://git.openrisc.net/cgit.cgi/jonas/linux/tree/arch/openrisc/kernel/vmlinux.lds.S#n33 from OUTPUT_FORMAT("elf32-or32", "elf32-or32", "elf32-or32") to OUTPUT_FORMAT("elf32-or1k", "elf32-or1k", "elf32-or1k") |



