Hi,
I've been cross compiling several versions of gcc for several months and finally, I think I've an update ready. But before I get myself 'wiki rights' and start updating the superb 'Cross Compiler Tutorials', I think I should make some discussions here.
First things first:
It seems as if some of the
target formats have been dropped from the newer releases. To force support of these output formats,
--enable-obsolete switch is required. Moreover, some of the
Cross Compiled Binaries also supports 'Cross Linking' although being targeted for a specific output format. One major issue I found, was with the
coff target. And the issue is - LD produces the
Undefined references to ... error when trying to link with the coff output file from NASM. It seems as if NASM and LD are not willing to accept each others
coff output. One of the source states that:
Quote:
There are two variants of the 32-bit COFF format: one used by Microsoft Win32 tools, and one by the rest of the world.
Quote:
COFF is also in use in some projects, although it lacks native support for features such as dynamic linking.
I am not sure if the reason behind
unresolved symbols, is one of these. So, before we can continue further discussions, I am willing to find the answer.
Thank you.