Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #200
Wound up having to backport more fixes for binutils than I expected, to get dumper.exe included again.
Corinna suggested in https://cygwin.com/pipermail/cygwin/2024-February/255472.html that there was probably no good reason for
_cygheap_start
being in.rsrc
instead of.cygheap
section, so moved it. This at least works well enough to run and update other packages on both i686 and x86_64, so is definitely an improvement on the old behavior of crashing immediately.As I mentioned in the commit message, this may result in reducing the difference between
_cygheap_start
and_cygheap_end
by the fraction of a page not used in the.rsrc
section. This works out to moving_cygheap_start
forward by 3064 bytes on i686, from 0x408 bytes into the.rsrc
page to the start of the.cygheap
section, which should have reduced the difference between_cygheap_end
and_cygheap_start
from 2137080 to 2134016 bytes. But for some reason, in practice this difference is now 2138112 bytes.On x86_64, the used portion of
.rsrc
is also0x408
bytes, and the difference between end and start went from 3210232 to 3182592 bytes.