On Tue, 12 Mar 2019 at 22:20, Branko <brane221122@xxxxxxxxx> wrote: > > I just did. > > I've compiled separate binutils for the target and then also compiled gcc. We would be able to help more if you told us how you configured binutils and GCC. > Result runs fine without parameters. But as soon as I give it to compile > even trivial program, it chokes with the message like: > > "as: unrecognised option -EB" > > It shows that this gcc always calls system AS/AR/LD, no mater what I do > or how I compile it. > > Is there any special trick for this ? It sounds like GCC didn't find your cross binutils. Did you install binutils, or just compile it? Did you install it somewhere that is in your PATH, so GCC can find the executables? Alternatively, did you use --with-as and --with-ld to tell GCC how to find them? The simplest solution is to install the cross binutils to the same path as you use for GCC's --prefix option. If GCC finds a binutils in the --prefix directory then it will use it automatically.