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 <no-reply+buildbot@haiku-os.org>
Reviewed-by: X512 <danger_mail@list.ru>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
PulkoMandy 2021-10-28 21:24:53 +02:00 committed by Adrien Destugues
parent f240512a53
commit c00a982d2a

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
:
;