-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
msys2-runtime-3.3 binaries no longer work #200
Comments
OK, check this out:
So msys2-runtime/winsup/cygwin/cygwin.sc.in Lines 141 to 156 in 3cba82a
Maybe the solution is to figure out how to make the |
I saw that, but I don't yet see a way to force the section to be writable. I've been playing with objcopy but I'm not getting --set-section-flags to do what I want. |
Binutils >= 2.41 started making .rsrc section read-only, which caused memset(_cygheap_start, ...) to segfault. Instead, put _cygheap_start in the .cygheap section, which makes more sense anyway, but may result in reducing the difference between _cygheap_start and _cygheap_end by the fraction of a page not used in the .rsrc section. Fixes msys2#200 See-also: https://cygwin.com/pipermail/cygwin/2024-February/255472.html Signed-off-by: Jeremy Drake <github@jdrake.com>
Binutils >= 2.41 started making .rsrc section read-only, which caused memset(_cygheap_start, ...) to segfault. Instead, put _cygheap_start in the .cygheap section, which makes more sense anyway, but may result in reducing the difference between _cygheap_start and _cygheap_end by the fraction of a page not used in the .rsrc section. Fixes #200 See-also: https://cygwin.com/pipermail/cygwin/2024-February/255472.html Signed-off-by: Jeremy Drake <github@jdrake.com>
From msys2/MSYS2-packages#4421, it was discovered that msys2-runtime-3.3-3.3.6-7 does not work, while -6 does, both on x86_64 and i686. On i686 at least, I found that downgrading to binutils-2.40-1 resulted in a working dll while any later version I tried did not.
Again on i686, I found that it crashed early on when the dll was loaded, in a
memset
call. It appears that the memory at_cygheap_start
is not writable anymore.The text was updated successfully, but these errors were encountered: