[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Making a bare-metal cross Binutils package


I'm looking into the most painless way to make cross Binutils for sh-elf, but
it seems like most documentation and tools are oriented towards Linux
crossbuilds. I see there is some code in the Binutils package for recognizing
GNU triplets, but setting TARGET=sh-elf and building fails with
x86_64-linux-gnu-gcc   stamps/build..o   -o stamps/build.
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
make: *** [<builtin>: stamps/build.] Error 1

The Electronics Team seems to use various ugly hacks for their
cross-compilers. What would be the most effective strategy for tackling this?


Attachment: signature.asc
Description: This is a digitally signed message part.

Reply to: