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 Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: eos.vss.fsi.com: ford owned process doing -bs Date: Wed, 15 Jan 2003 13:47:43 -0600 (CST) From: Brian Ford X-X-Sender: ford AT eos To: binutils AT sources DOT redhat DOT com, , Subject: Non-zero VMA's w/DWARF-2? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII I am trying to add DWARF-2 support to Cygwin. I have run into the problem that all example DWARF-2 implementations seem to expect the .debug_* sections' VMAs to be zero. This contradicts the PE/coff object format as I read it, and the resulting executable will not run. From "Microsoft Portable Executable and Common Object File Format Specification 6.0": 4.) Section Table (Section Headers) In an image file, the virtual addresses for sections must be assigned by the linker such that they are in ascending order and adjacent, and they must be a multiple of the Section Align value in the optional header. and 5. Other Contents of the File The remainder of a COFF object or image file contains blocks of data that are not necessarily at any specific file offset. Instead the locations are defined by pointers in the Optional Header or a section header. [...] Another exception is that attribute certificate and debug information must be placed at the very end of an image file (with the attribute certificate table immediately preceding the debug section), because the loader does not map these into memory. The rule on attribute certificate and debug information does not apply to object files, however. Am I reading this wrong? Who's the PE expert? Is there any hope of non-zero VMAs for .debug_* sections? Thanks. -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International Phone: 314-551-8460 Fax: 314-551-8444 -- 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/