forked from ish-app/ish
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This allows compiling the project but not the vdso with things like asan or afl.
- Loading branch information
Showing
2 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
option('log', type: 'string', value: '') | ||
option('nolog', type: 'string', value: '') | ||
|
||
option('vdso_cc', type: 'string', value: 'cc') | ||
option('vdso_c_args', type: 'string', value: '') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# the vdso | ||
vdso = shared_library('vdso', ['vdso.S', 'vdso.c', 'note.S'], c_args: ['-m32'], | ||
link_args: ['-m32', '-nostdlib', '-Wl,-T,../vdso/vdso.lds'], | ||
link_depends: ['vdso.lds']) | ||
# I can't use shared_library for this because then I have to use the same | ||
# compiler and options as the rest of the project which prevents me from using | ||
# sanitizers and afl | ||
vdso = custom_target('vdso', input: ['vdso.S', 'vdso.c'], output: 'libvdso.so', | ||
command: [get_option('vdso_cc'), '-o', '@OUTPUT@', '@INPUT@', | ||
'-m32', '-nostdlib', '-Wl,-T,../vdso/vdso.lds', '-shared', '-fPIC'] | ||
+ get_option('vdso_c_args').split()) |