Problems when linking

Toshi Morita tm2@best.com
Thu Apr 19 09:48:00 GMT 2001


Carlos Pita wrote:

> Hi!
>     I'm using gcc 2.95.2 with cygwin. I'm also assembling with nasm, then
> trying to link object files from the c compilation and from the assembling.
> The problem is that the linker can't found the global symbols in the
> assembler code that are invoked from the c code. I think this is related to
> the format of the object files that I'm generating. I'm not sure about how
> does cygwin gcc work in this respect. With nasm I can generate at least obj
> or elf outputs.
> Can you help me?

GCC doesn't generate binary object file formats. It generates assembly output
which is then assembled by GAS, the GNU assembler.

Any questions about object file format therefore should be posted to the
binutils mailing list.

Toshi



More information about the Gcc mailing list