aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2024-11-13 14:59:12 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2024-11-13 14:59:12 +0000
commit52c1979b22c5e66459659a9cda8d69a2c9b148ca (patch)
treea8bb29a830b00ea13db66ef6c98cc6048e5490f0
parentd32130f8a81247e450490d31074ec6501dd4aeb1 (diff)
downloadteachos-52c1979b22c5e66459659a9cda8d69a2c9b148ca.tar.xz
teachos-52c1979b22c5e66459659a9cda8d69a2c9b148ca.zip
Add note on possible options to enable PIC / PIE
-rw-r--r--arch/x86_64/src/kernel/main.cpp3
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