Comments (2)
otool -x a.11.3.out
otool -x a.10.3.out
比较两个otool的输出发现text段的maxprot不一样分别是rx,rwx。
man ld
-segprot segname max_prot init_prot
Specifies the maximum and initial virtual memory protection of the named segment, name, to be max and init ,respectively.
The values for max and init are any combination of the characters r' (for read),
w' (for write), x' (for execute) and
-'
(no access).
from h2unit.
-Wl,-segprot,__TEXT,rwx,rwx
加入Linker选项,解决问题。
from h2unit.
Related Issues (8)
- Compile failed under 64bit system
- Can't dynamic stub functions by name in MAC OS
- Can't dynamic stub functions by name in Windows HOT 1
- Add check method using regular express to match string likes wildcard match HOT 3
- Can't take over assert() macro HOT 1
- Merge h2unit.cpp into single h2unit.h file HOT 2
- H2EQ_MATH with pointer type parameters, compile failed HOT 2
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 h2unit.