On Mon, Dec 10, 2012 at 12:48 PM, Enrico Scholz <[email protected]> wrote: > Hi, > > with recent binutils, kernel build fails with > > | arm-linux-gnueabi-ld: error: arch/arm/boot/compressed/piggy.gzip.o: unknown > CPU architecture > > I am able to reproduce it with > > $ > /tmp/x.s > $ arm-linux-gnueabi-as -march=armv7-a -march=all -o x0.o /tmp/x.s > $ arm-linux-gnueabi-as -march=armv7-a -o x1.o /tmp/x.s > $ arm-linux-gnueabi-ld.gold x0.o x1.o > arm-linux-gnueabi-ld: error: x1.o: unknown CPU architecture > $ arm-linux-gnueabi-ld.bfd x0.o x1.o > arm-linux-gnueabi-ld.bfd: warning: cannot find entry symbol _start; > defaulting to 0000000000008034 > > > (kernel sets '-Wa,-march=all' when building piggy.gzip.o) > > > This works fine with binutils 2.22 and when using the BFD linker.
You need to patch your kernel sources, some examples for different kernel versions (please ignore incorrect commit message) https://github.com/shr-distribution/linux/commit/e465ff7527fb085b4854b0e68aa6bc592229bf43 https://github.com/shr-distribution/linux/commit/627c638794d61c27858d6220cf55c27c74dc9450 https://github.com/shr-distribution/linux/commit/37b0bacc00e81811dc113265a9ef826fe9aab788 https://github.com/shr-distribution/linux/commit/ec1ac589d49081286164246fbaaba0012ae7ecac Cheers, _______________________________________________ Openembedded-core mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
