]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
build: Support gcc-10 compilation on Unikraft
authorSharan Santhanam <sharan.santhanam@neclab.eu>
Thu, 4 Feb 2021 18:12:15 +0000 (23:42 +0530)
committerSharan Santhanam <sharan.santhanam@neclab.eu>
Thu, 4 Feb 2021 18:57:30 +0000 (00:27 +0530)
commit86fef08ac53b06ce48a4160f8569a3c8d2c2b65c
tree5b22da93d5a8168f8a219e53b8c721b5b5160d90
parenta95a6f6cb3e1a6347f3991e53a59ee763fc38104
build: Support gcc-10 compilation on Unikraft

When compiling Unikraft with gcc-10, the compiler replace the memset
function with a recursive builtin memset call, which result in a
infinite recursive call to the memset causing exhaustion of the stack
memory eventually leading to crash. To fix this the gcc provides
compiler flags -ffreestanding and -fhosted.

Signed-off-by: Sharan Santhanam <sharan.santhanam@neclab.eu>
Reviewed-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@upb.ro>
Makefile.uk