www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-3.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4AF449B4.6080300@cwilson.fastmail.fm> |
Date: | Fri, 06 Nov 2009 11:07:16 -0500 |
From: | Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: small exe size increase from 1.7.0-62 to -63 |
References: | <416096c60911052218x1cca9a65w7e5b607175422f82 AT mail DOT gmail DOT com> <20091106113229 DOT GC26344 AT calimero DOT vinschen DOT de> |
In-Reply-To: | <20091106113229.GC26344@calimero.vinschen.de> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
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 |
Corinna Vinschen wrote: >> Obviously 1.5K isn't much of a concern, but is this expected? > > It's a result of the new pseudo reloc v2 support. Probably Chuck can > explain this better. I guess I should keep my reader in thread mode...I don't know what I could add to Corinna's explanation, except to say that all DLLs and EXEs include the startup code for runtime pseudo-relocs. It now handles both v1 and v2 versions -- and the v2 version requires additional code (there's [some of] your 1.5k). Also, there is now actual error handling, so that's the WriteFile and various string handling imports. Finally, in both v1 and v2 mode, we now use the Virtual* functions to temporarily mark read-only pages writeable in order to update the relocs. This *should* make it possible -- **later** -- to reverse the current binutils behavior on cygwin when --enable-auto-import. Right now, in that situation, binutils merges .rdata with .data, and marks .text writable, which is...less than ideal. -- Chuck -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |