Mail Archives: djgpp/1998/12/27/06:18:44
On Thu, 24 Dec 1998, Laurence Withers wrote:
> gcc -c a-dxe.cpp -o a-dxe.o
> dxegen a-dxe.dxe _test a-dxe.o
> ld -X -S -r -o dxe__tmp.o -LC:/PROGRAMS/DJGPP/lib a-dxe.o -T dxe.ld
> Error: input file has more than one section; use -M for map
>
> Unfortunately, this doesn't mean anything to me :-(
This means what it says: that the produced file a-dxe.o has more than a
single section.
Does the same work for a C code? If it does, chances are that the
additional section is due to the way C++ exceptions are supported. (That
hint about -M option is there for you to follow it, you know ;-). In
that case, try invoking gcc with the -fno-exceptions option (I hope I
spell the option right) and see if that helps.
- Raw text -