base-nova: fix page fault in init when built with gcc 12

Fixes #4834
This commit is contained in:
Christian Prochaska 2023-04-28 04:12:26 +02:00 committed by Christian Helmuth
parent 920e240f67
commit c74c8d12cf
2 changed files with 10 additions and 0 deletions

View File

@ -14,3 +14,8 @@ SRC_CC += stack_area_addr.cc
SRC_CC += cap_map.cc
SRC_CC += capability.cc
SRC_CC += signal_transmitter.cc
#
# Prevent the compiler from deleting null pointer checks related to 'this == 0'
#
CC_OPT += -fno-delete-null-pointer-checks

View File

@ -4,3 +4,8 @@ LIBS += base-nova-common cxx timeout
SRC_CC += thread_start.cc
SRC_CC += cache.cc
SRC_CC += signal.cc
#
# Prevent the compiler from deleting null pointer checks related to 'this == 0'
#
CC_OPT += -fno-delete-null-pointer-checks