diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2025-07-18 10:49:03 +0000 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2025-07-18 10:49:03 +0000 |
| commit | a832505d9696ae66248b53602d41637bef4868aa (patch) | |
| tree | 8332caa1a4dd1c78060eb80dfb3b2bb370582105 /CMakeLists.txt | |
| parent | b794fc9e4427f63aba624700af2e1df250aa41ef (diff) | |
| download | teachos-a832505d9696ae66248b53602d41637bef4868aa.tar.xz teachos-a832505d9696ae66248b53602d41637bef4868aa.zip | |
kernel: turn into a PIE
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ddb4ed..821640c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,6 +46,10 @@ target_link_libraries("kernel" PRIVATE "os::kern" ) +target_link_options("kernel" PRIVATE + "-no-pie" +) + target_disassemble("kernel") target_extract_debug_symbols("kernel") target_strip("kernel") |
