delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/08/13:32:32

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Subject: Re: Problem with using stripped cygwin1.dll built from CVS
From: Max Kaehn <slothman AT electric-cloud DOT com>
To: cygwin AT cygwin DOT com
In-Reply-To: <20050608143656.GB17698@trixie.casa.cgf.cx>
References: <42A6298E DOT 303 AT acm DOT org> <42A62DAE DOT F4153556 AT dessent DOT net> <42A632C5 DOT 7040306 AT acm DOT org> <20050608084920 DOT GN23172 AT calimero DOT vinschen DOT de> <20050608143656 DOT GB17698 AT trixie DOT casa DOT cgf DOT cx>
Message-Id: <1118251939.5031.2587.camel@fulgurite>
Mime-Version: 1.0
Date: Wed, 08 Jun 2005 10:32:19 -0700
X-Spam-Not-Checked: Messages over 100K or from internal Electric Cloud machines are not checked
X-IsSubscribed: yes

On Wed, 2005-06-08 at 07:36, Christopher Faylor wrote:
> I understand the problem.  It's a binutils bug that I'm investigating.
> Either gas or ld is marking NOLOAD sections as "read only" and that is
> causing windows to actually load them into memory.

This may or may not be related, but I've noticed that my local
builds of cygwin1.dll don't wind up with version resources that
Windows can see.  It looks like the linker is leaving them out--
the .rsrc section is absent, even though winver.o is on the link line.

---
levinbolt-xp% objdump -h C:/cygwin/bin/old-cygwin1.dll

C:/cygwin/bin/old-cygwin1.dll:     file format pei-i386

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00108264  61001000  61001000  00000600  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE, DATA
  1 .data         0000ad40  6110a000  6110a000  00108a00  2**4
                  CONTENTS, ALLOC, LOAD, DATA
  2 .advapi32_text 00000b50  61115000  61115000  00113800  2**2
                  CONTENTS, ALLOC, LOAD, CODE
  3 .netapi32_text 00000120  61116000  61116000  00114400  2**2
                  CONTENTS, ALLOC, LOAD, CODE
  4 .ntdll_text   000002f8  61117000  61117000  00114600  2**2
                  CONTENTS, ALLOC, LOAD, CODE
  5 .psapi_text   000000e0  61118000  61118000  00114a00  2**2
                  CONTENTS, ALLOC, LOAD, CODE
  6 .secur32_text 000000e8  61119000  61119000  00114c00  2**2
                  CONTENTS, ALLOC, LOAD, CODE
  7 .user32_text  00000560  6111a000  6111a000  00114e00  2**2
                  CONTENTS, ALLOC, LOAD, CODE
  8 .wsock32_text 000004e0  6111b000  6111b000  00115400  2**2
                  CONTENTS, ALLOC, LOAD, CODE
  9 .ws2_32_text  000001f0  6111c000  6111c000  00115a00  2**2
                  CONTENTS, ALLOC, LOAD, CODE
 10 .iphlpapi_text 00000090  6111d000  6111d000  00115c00  2**2
                  CONTENTS, ALLOC, LOAD, CODE
 11 .ole32_text   00000028  6111e000  6111e000  00115e00  2**2
                  CONTENTS, ALLOC, LOAD, CODE
 12 .kernel32_text 00000348  6111f000  6111f000  00116000  2**2
                  CONTENTS, ALLOC, LOAD, CODE
 13 .shell32_text 00000028  61120000  61120000  00116400  2**2
                  CONTENTS, ALLOC, LOAD, CODE
 14 .winmm_text   00000330  61121000  61121000  00116600  2**2
                  CONTENTS, ALLOC, LOAD, CODE
 15 .mpr_text     000000d8  61122000  61122000  00116a00  2**2
                  CONTENTS, ALLOC, LOAD, CODE
 16 .rpcrt4_text  00000050  61123000  61123000  00116c00  2**2
                  CONTENTS, ALLOC, LOAD, CODE
 17 cygwin_dll_common 00000020  61124000  61124000  00116e00  2**2
                  CONTENTS, ALLOC, LOAD, DATA, SHARED
 18 .rdata        00002990  61125000  61125000  00117000  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 19 .bss          00009af0  61128000  61128000  00000000  2**4
                  ALLOC
 20 .edata        00007961  61132000  61132000  00119a00  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 21 .idata        000018d8  6113a000  6113a000  00121400  2**2
                  CONTENTS, ALLOC, LOAD, DATA
 22 .rsrc         00000428  6113c000  6113c000  00122e00  2**2
                  CONTENTS, ALLOC, LOAD, DATA
 23 .reloc        0000f45c  6113d000  6113d000  00123400  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA

levinbolt-xp% objdump -h C:/cygwin/bin/cygwin1.dll

C:/cygwin/bin/cygwin1.dll:     file format pei-i386

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         000d8344  61001000  61001000  00000400  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE, DATA
  1 .autoload_text 000025e0  610da000  610da000  000d8800  2**2
                  CONTENTS, ALLOC, LOAD, CODE
  2 .data         0000af48  610dd000  610dd000  000dae00  2**4
                  CONTENTS, ALLOC, LOAD, DATA
  3 cygwin_dll_common 00000020  610e8000  610e8000  000e5e00  2**2
                  CONTENTS, ALLOC, LOAD, DATA, SHARED
  4 .rdata        00038930  610e9000  610e9000  000e6000  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  5 .bss          00009d60  61122000  61122000  00000000  2**4
                  ALLOC
  6 .edata        00007961  6112c000  6112c000  0011ea00  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  7 .stab         001daea0  61134000  61134000  00126400  2**2
                  CONTENTS, READONLY, DEBUGGING, NEVER_LOAD, EXCLUDE
  8 .stabstr      004dd334  6130f000  6130f000  00301400  2**0
                  CONTENTS, READONLY, DEBUGGING, NEVER_LOAD, EXCLUDE
  9 .idata        00001900  617ed000  617ed000  007de800  2**2
                  CONTENTS, ALLOC, LOAD, DATA
 10 .cygheap      00104000  617ef000  617ef000  00000000  2**2
                  ALLOC



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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