kernel: do not allow undefined symbols

If there are undefined symbols, we can't load the kernel (the bootloader
complains about missing relocations). It makes sense to not allow that
at compile time.

Change-Id: I430bebada16544ffa8be293cd6c075338970d8ce
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4668
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: X512 <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
PulkoMandy
2021-10-31 15:28:05 +00:00
committed by Adrien Destugues
parent f240512a53
commit c00a982d2a
+1 -1
View File
@@ -127,7 +127,7 @@ KernelLd kernel_$(TARGET_ARCH) :
: $(HAIKU_TOP)/src/system/ldscripts/$(TARGET_ARCH)/kernel.ld
: -Bdynamic -export-dynamic -dynamic-linker /foo/bar
$(TARGET_KERNEL_PIC_LINKFLAGS)
$(TARGET_KERNEL_PIC_LINKFLAGS) --no-undefined
:
;