Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <20011218211424.39720.qmail@web14502.mail.yahoo.com> Date: Wed, 19 Dec 2001 08:14:24 +1100 (EST) From: =?iso-8859-1?q?Danny=20Smith?= Subject: Re: Possible bug in handling of BSS sections? To: Julian Hall , cygwin AT cygwin DOT com In-Reply-To: <3C1F40A4.9683582D@acris.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit --- Julian Hall 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: objdump -V GNU objdump 2.11.92 20011216 objdump -x testing.obj ===snip=== Sections: 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 ALLOC 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 Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/