Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
Linux Library Inject
Project
Project
Details
Activity
Releases
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
Chu
Linux Library Inject
Commits
7ac48631
Commit
7ac48631
authored
Dec 27, 2019
by
Chu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace ctor with _init
parent
9ed70b67
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
CMakeLists.txt
evil/CMakeLists.txt
+1
-1
evil.c
evil/evil.c
+1
-1
evil.h
evil/evil.h
+1
-1
No files found.
evil/CMakeLists.txt
View file @
7ac48631
add_library
(
evil SHARED evil.c evil.h
)
set_target_properties
(
evil PROPERTIES LINK_FLAGS
"-s"
)
set_target_properties
(
evil PROPERTIES LINK_FLAGS
"-
nostartfiles -
s"
)
evil/evil.c
View file @
7ac48631
...
...
@@ -2,7 +2,7 @@
#include <stdio.h>
void
_
_attribute__
((
constructor
))
init
()
void
_init
()
{
puts
(
"hello, world"
);
}
evil/evil.h
View file @
7ac48631
#ifndef LINUX_LIBRARY_INJECT_EVIL_H
#define LINUX_LIBRARY_INJECT_EVIL_H
void
_
_attribute__
((
constructor
))
init
();
void
_init
();
#endif // LINUX_LIBRARY_INJECT_EVIL_H
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