X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 845F03858438
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1672678014;
	bh=1CWfzgBVHAduDyrkfkD7bzvXZQYMFq1rZj2FenWzEy4=;
	h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=qXDubU4Oj1CFk7SlH4bynJ4ni43W2jsJH7rgc2DsUn28nrqHyrON4wHmPjtYMmf/o
	 c9SOG+V151Jvye0rlkgjuBLynu3M3HqBPfMWvvD2OapIekubp2Pi+hLfVUkZrGH2bG
	 VBCVP2wtq8xRvb7ydzho0SoOwbDSnyHk+kuJ4AFI=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
X-SNCR-Rigid: 61A69BAC3DE37CD3
X-Originating-IP: [81.153.98.246]
X-OWM-Source-IP: 81.153.98.246 (GB)
X-OWM-Env-Sender: jonturney@btinternet.com
X-VadeSecure-score: verdict=clean score=0/300, class=clean
X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvhedrjedvgdelgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemuceutffkvffkuffjvffgnffgvefqofdpqfgfvfenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheplfhonhcuvfhurhhnvgihuceojhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukheqnecuggftrfgrthhtvghrnhepkeeukeeuuedukefhfeeufedtjeejfeejhfdtffdttdevvdelheegvdfftdegiedtnecuffhomhgrihhnpegthihgfihinhdrtghomhenucfkphepkedurdduheefrdelkedrvdegieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopegludelvddrudeikedruddruddtiegnpdhinhgvthepkedurdduheefrdelkedrvdegiedpmhgrihhlfhhrohhmpehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepuehrihgrnhdrkfhnghhlihhssefuhihsthgvmhgrthhitgfuhgdrrggsrdgtrgdprhgtphhtthhopegthihgfihinhestgihghifihhnrdgtohhm
X-RazorGate-Vade-Verdict: clean 0
X-RazorGate-Vade-Classification: clean
Message-ID: <e8d281f5-3ac0-bd27-fb11-e384b7572c3b@dronecode.org.uk>
Date: Mon, 2 Jan 2023 16:46:14 +0000
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
 Thunderbird/102.6.1
Subject: Size reduction of Cygwin DLL (was Re: Cygwin 3.4.3-1 update cygheap
 read copy failed Win32 error 299)
To: Brian Inglis <Brian.Inglis@SystematicSW.ab.ca>,
        The Cygwin Mailing List <cygwin@cygwin.com>
References: <1819e9ed-28c8-52cb-a07e-5e76c0215db9@Shaw.ca>
Content-Language: en-GB
In-Reply-To: <1819e9ed-28c8-52cb-a07e-5e76c0215db9@Shaw.ca>
X-Spam-Status: No, score=-3570.0 required=5.0 tests=BAYES_00, FORGED_SPF_HELO,
 KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,
 SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Jon Turney via Cygwin <cygwin@cygwin.com>
Reply-To: Jon Turney <jon.turney@dronecode.org.uk>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 302GlGcU007809

On 17/12/2022 23:15, Brian Inglis via Cygwin wrote:
> Just upgraded all packages including Cygwin last night and get occasional:
[...]
> 
> Noticed current release is much smaller than previous and my local DLL:
> 
> $ TZ=UTC ls -glort /bin/cygwin1*.dll
> -rwxr-xr-x 1 3588124 Sep  5 11:17 /bin/cygwin1-prev.dll
> -rwxr-xr-x 1 3561202 Dec 16 07:33 /bin/cygwin1-test.dll
> -rwxr-xr-x 1 3561202 Dec 16 07:33 /bin/cygwin1.dll
> -rwxr-xr-x 1 2951221 Dec 16 12:50 /bin/cygwin1-save.dll
> -rwxr-xr-x 1 2951221 Dec 16 12:50 /bin/cygwin1-curr.dll
> $ for tar in ~/mirror/x86_64/release/cygwin/cygwin-3.4.?-1.tar.xz; do 
> echo -n "${tar##*/}: "; tar -tvf $tar usr/bin/cygwin1.dll | cut -d' ' 
> -f3- ; done
> cygwin-3.4.0-1.tar.xz: 3563651 2022-12-04 06:09 usr/bin/cygwin1.dll
> cygwin-3.4.1-1.tar.xz: 3563526 2022-12-10 13:12 usr/bin/cygwin1.dll
> cygwin-3.4.2-1.tar.xz: 3564074 2022-12-11 05:06 usr/bin/cygwin1.dll
> cygwin-3.4.3-1.tar.xz: 2951221 2022-12-16 05:50 usr/bin/cygwin1.dll
  This is probably not related to any problems you are seeing.

In 3.4.3 we made a change so that cygwin DLL is stripped by the standard 
mechanisms in cygport (previously it managed it's own stripping) [1].

It seems that cygport does a more thorough job of this (in particular it 
removes the (I think useless) COFF symbol table).

[1] 
https://cygwin.com/git/?p=newlib-cygwin.git;a=commitdiff;h=99bb3e937a0fdbc1e3acbdc7cefb31e54a89a6ac


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

