delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/12/18/16:14:44

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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?= <danny_r_smith_2001 AT yahoo DOT co DOT nz>
Subject: Re: Possible bug in handling of BSS sections?
To: Julian Hall <jules AT acris DOT co DOT uk>, cygwin AT cygwin DOT com
In-Reply-To: <3C1F40A4.9683582D@acris.co.uk>
MIME-Version: 1.0

 --- Julian Hall <jules AT acris DOT co DOT uk> 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/

- Raw text -


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