On Wed, Jul 23, 2014 at 11:32 PM, Ziqiang Patrick Huang <[email protected]> wrote: > So if I add -integrated-as flag, it passes the assembling stage but got > stuck at linking > > /usr/bin/ld: /tmp/hello-6de003.o: Relocations in generic ELF (EM: 92) > /tmp/hello-6de003.o: could not read symbols: File in wrong format > collect2: error: ld returned 1 exit status > clang: error: linker (via gcc) command failed with exit code 1 (use -v to > see invocation) >
You will need to build and install or1k binutils (git://sourceware.org/git/binutils-gdb.git). Install the or1k-elf target, and then the easiest way to make clang pick the right target is IMO to just make a symlink that is called or1k-elf-clang and that is pointing at the original clang executable. Stefan _______________________________________________ OpenRISC mailing list [email protected] http://lists.openrisc.net/listinfo/openrisc
