diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-11-13 14:59:12 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-11-13 14:59:12 +0000 |
| commit | 52c1979b22c5e66459659a9cda8d69a2c9b148ca (patch) | |
| tree | a8bb29a830b00ea13db66ef6c98cc6048e5490f0 | |
| parent | d32130f8a81247e450490d31074ec6501dd4aeb1 (diff) | |
| download | teachos-52c1979b22c5e66459659a9cda8d69a2c9b148ca.tar.xz teachos-52c1979b22c5e66459659a9cda8d69a2c9b148ca.zip | |
Add note on possible options to enable PIC / PIE
| -rw-r--r-- | arch/x86_64/src/kernel/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86_64/src/kernel/main.cpp b/arch/x86_64/src/kernel/main.cpp index 6c0faf4..5b0f2c3 100644 --- a/arch/x86_64/src/kernel/main.cpp +++ b/arch/x86_64/src/kernel/main.cpp @@ -36,6 +36,9 @@ namespace teachos::arch::kernel // TODO: Seems to work correctly, Level 4 Index 0, Level 3 Index 0, Level 2 Index 0, Level 1 Index 184 = 753667 from // mapping vga is still mapped + // set(CMAKE_POSITION_INDEPENDENT_CODE ON), should enable position independent code, but mapping still does not work + // with same error? + // Can we change the gcc call? gcc -fPIC -c mylibrary.cpp // TODO: Map heap virtual pages with active table |
