www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000122

When Created: 11/15/1996 05:04:02
Against DJGPP version: 2.01
By whom: ilya@spy.isp.nsc.ru
Abstract: ld stubifies COFF file even if -r option was used
I wanted to create an object file for later linkage from several .o files and
issued a command like this
ld -r -o all.o *.o
But ld surprisingly appended stub to that file. So some programms, which
assume that input file is pure COFF failed to work.
I've tried to use -b coff-go32 to override (i thought it was default to
produce coff-go32-exe target) default target, but it won't help.

Workaround added: 04/19/1997 01:08:00
By whom: fighteer@cs.com
This may be a bug, but the simplest workaround is to use 'exe2coff' to remove
the stub from the file output by 'ld'.  Also, remember that 'ld' doesn't
inherently know about libraries as a type of output.  If you want to build
libraries, use 'ar'.

Closed on 04/13/1999 07:00:53: This problem is with LD, it's not a DJGPP bug.
By whom: eliz@is.elta.co.il



  webmaster     delorie software   privacy  
  Copyright © 2010   by DJ Delorie     Updated Jul 2010