]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
build: Explain OPTIMIZE_PIE
authorSimon Kuenzer <simon@unikraft.io>
Fri, 11 Aug 2023 13:09:24 +0000 (15:09 +0200)
committerUnikraft <monkey@unikraft.io>
Fri, 11 Aug 2023 16:11:51 +0000 (16:11 +0000)
Adds an explanation for the OPTIMIZE_PIE configuration option.

Signed-off-by: Simon Kuenzer <simon@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #1038

Config.uk

index 3cedd3a5aa3d2e38f2abbf3edba435709aec401f..c27af57111acee341c6106ae0a3a46b1db375258 100644 (file)
--- a/Config.uk
+++ b/Config.uk
@@ -100,10 +100,14 @@ config OPTIMIZE_LTO
                Unikraft binaries.
 
 config OPTIMIZE_PIE
-       bool "Build the Unikernel as a static PIE"
+       bool "Static-PIE - Position-independent binary"
        select LIBUKRELOC
+       default n
        help
-               Build the Unikernel as a static PIE.
+               Creates a position independent binary. Such a Unikernel binary does
+               not have to be placed at a fixed location in the virtual address
+               space by a loader. Some loaders even assume that kernel entrance is
+               relocatable (e.g., EFI).
 
 choice
        prompt "Debug information level"