This is the mail archive of the
mailing list for the Cygwin project.
Re: Possible bug in handling of BSS sections?
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: Julian Hall <jules at acris dot co dot uk>, cygwin at cygwin dot com
- Date: Wed, 19 Dec 2001 08:14:24 +1100 (EST)
- Subject: Re: Possible bug in handling of BSS sections?
--- Julian Hall <email@example.com> wrote: >
> Hi; I don't know whether this has been mentioned before, but I just had
> a bug report for NASM, which I am one of the maintainers of, relating to
> linking code assembled by NASM with the cygwin or mingw linkers.
> I've done a little investigation, and have managed to rule out NASM as
> the source of the problem; I attach a .OBJ file which was created by MS
> Visual Studio. When examined with the tools supplied with Visual
> Studio, this object file contains a .BSS section of size 4; however,
> when viewed with 'objdump' under cygwin (GNU objdump 2.11.90), the BSS
> section has 0 size.
This appears to be fixed in CVS binutils:
GNU objdump 2.11.92 20011216
objdump -x testing.obj
Idx Name Size VMA LMA File off Algn
0 .drectve 00000027 00000000 00000000 000000dc 2**0
CONTENTS, READONLY, DEBUGGING, EXCLUDE
1 .debug$S 00000113 00000000 00000000 00000103 2**0
CONTENTS, ALLOC, LOAD, RELOC, READONLY, DATA, DEBUGGING
2 .bss 00000004 00000000 00000000 00000000 2**2
3 .text 00000005 00000000 00000000 0000023e 2**4
CONTENTS, ALLOC, LOAD, READONLY, CODE
4 .debug$T 00000030 00000000 00000000 0000024f 2**0
CONTENTS, ALLOC, LOAD, READONLY, DATA, DEBUGGING
http://greetings.yahoo.com.au - Yahoo! Greetings
- Send your festive greetings online!
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html