This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: pe-i386 object files with .bss sections
- From: DJ Delorie <dj at delorie dot com>
- To: cpg at aladdin dot de
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 19 Dec 2001 23:01:47 -0500
- Subject: Re: pe-i386 object files with .bss sections
- References: <874rmok6cy.fsf@panther.aladdin.de>
> This gives a problem, when I try to link a gcc generated object file
> (containing a bss section) with the MS linker, since the linker reads
> a bss length of 0.
I think our goal as far as MS compatibility is concerned is to support
MS objects with GNU linker, not the other way around (although that
would be nice too). We've been slowly fixing the differences as we
go, but we have to be careful not to break backwards compatibility.
Plus, we share a lot of code with the generic COFF bfd, so we have to
be careful about the differences.
> The real fix should distinguish whether we work on an exe or obj
> file. (How?)
See if there's a way to detect if we're doing a PEI bfd (executable)
or a PE bfd (object).