Comments (3)
OK, check this out:
$ objdump -h /usr/bin/msys-2.0.dll
/usr/bin/msys-2.0.dll: file format pei-i386
Sections:
Idx Name Size VMA LMA File off Algn
...
11 .rsrc 00000408 612e6000 612e6000 002a6a00 2**2
CONTENTS, ALLOC, LOAD, DATA
12 .cygheap 00209000 612e7000 612e7000 00000000 2**2
ALLOC
$ nm -B /usr/bin/msys-2.0.dll | grep cygheap_start
612e6408 D __cygheap_start
$ objdump -h usr/bin/msys-2.0.dll
usr/bin/msys-2.0.dll: file format pei-i386
Sections:
Idx Name Size VMA LMA File off Algn
...
11 .rsrc 00000408 612e5000 612e5000 002a6200 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
12 .cygheap 0020a000 612e6000 612e6000 00000000 2**2
ALLOC
$ nm -B usr/bin/msys-2.0.dll | grep cygheap_start
612e5408 R __cygheap_start
So _cygheap_start
is actually in the .rsrc
section, and that section seems to have changed to be READONLY. That actually makes some sense, due to:
msys2-runtime/winsup/cygwin/cygwin.sc.in
Lines 141 to 156 in 3cba82a
Maybe the solution is to figure out how to make the .rsrc
section writable again? I have to imagine there's some good reason why _cygheap_start
was put in the .rsrc
instead of .cygheap
section to begin with...
from msys2-runtime.
bminor/binutils-gdb@c53c618 / https://sourceware.org/bugzilla/show_bug.cgi?id=30142 ?
from msys2-runtime.
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.
from msys2-runtime.
Related Issues (20)
- dcrt0.cc: impossible to pass double quotes to application if noglob is enabled
- Regressions with the terminal alternate screen in msys2-runtime 3.3.6-5 HOT 13
- isdigit macro in <ctype.h> triggers -Wchar-subscripts when expanded in user code HOT 4
- Regressions after pathconv-adjustments(3.4.10-4) HOT 2
- I suggest to add this x86_64-msys target to gcc itself HOT 3
- Copying and moving a symlink to another FS fails if the target is relative
- Fallout from pathconf changes
- Error found in compilation from binutils HOT 1
- Is it possible to increase program execution speed by caching the result of path conversion HOT 1
- Investigate why cygdrives don't show up with listdir HOT 4
- mintty leaks handles when enable_pcon=true (ConPTY) HOT 9
- Flushing stdin doesn't seem to work HOT 3
- In msys2-runtime 3.4.10, an external command no longer recognizes files in the current directory. HOT 5
- read after select blocks for pipe to external program when running MSYS program in UCRT64 HOT 8
- ls/stat on OneDrive causes download of files HOT 7
- Java Classpath Broken HOT 8
- Regression from pathconv changes HOT 24
- build failure after update to msys2-w32api HOT 5
- Symbolic link to directory creation fails because of too long paths even if path <= 260 characters HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msys2-runtime.