Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
afa771a9
Commit
afa771a9
authored
Feb 16, 2022
by
LoveSy
Committed by
John Wu
Feb 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set dlopen reserved size to unlimited
parent
0d1de98c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
entry.cpp
native/jni/zygisk/entry.cpp
+3
-3
No files found.
native/jni/zygisk/entry.cpp
View file @
afa771a9
...
@@ -112,9 +112,9 @@ static void first_stage_entry() {
...
@@ -112,9 +112,9 @@ static void first_stage_entry() {
info
.
reserved_addr
=
addr
;
info
.
reserved_addr
=
addr
;
// The existing address is guaranteed to fit, as 1st stage and 2nd stage
// The existing address is guaranteed to fit, as 1st stage and 2nd stage
// are exactly the same ELF (same inode). However, the linker could over
// are exactly the same ELF (same inode). However, the linker could over
// estimate the required size and refuse to dlopen.
Add 2 more page_sizes
// estimate the required size and refuse to dlopen.
The estimated size
//
(one at the beginning and one at the end) as a safety measure
.
//
is not accurate so size the size to unlimited
.
info
.
reserved_size
=
size
+
2
*
4096
;
info
.
reserved_size
=
-
1
;
}
}
setenv
(
INJECT_ENV_2
,
"1"
,
1
);
setenv
(
INJECT_ENV_2
,
"1"
,
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment