This commit is contained in:
2026-08-14 21:31:01 +02:00
parent 40cea4dedd
commit ac9d47fa16
58 changed files with 148 additions and 37 deletions
+7 -1
View File
@@ -19,7 +19,7 @@ vdso_link_args = [
# Build a shared library, which we are going to embed next.
# TODO: We need to ensure there are no relocations inside the vDSO.
vdso = shared_library(
real_vdso = shared_library(
'zinnia-vdso',
name_prefix: '',
c_args: vdso_c_args,
@@ -44,5 +44,11 @@ vdso = shared_library(
],
)
vdso = custom_target(
command: [find_program('cp'), '@INPUT@', '@OUTPUT@'],
input: real_vdso,
output: 'vdso.bin',
)
# Tell the kernel where the built binary lives so we can #embed it.
kernel_c_args += ['-DVDSO_PATH="' + vdso.full_path() + '"']