Size reduction of Cygwin DLL (was Re: Cygwin 3.4.3-1 update cygheap read copy failed Win32 error 299)

Jon Turney jon.turney@dronecode.org.uk
Mon Jan 2 16:46:14 GMT 2023


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



More information about the Cygwin mailing list