From 9e5091d7a3240c8c58f02c853feee6388d0b1d0d Mon Sep 17 00:00:00 2001 From: Simon South Date: Wed, 28 Oct 2015 20:10:43 -0400 Subject: [PATCH] Build without linker warnings about missing entry symbols. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * BootRules: Use -Xlinker option correctly to specify entry point. * KernelRules: Build kernel add-ons as shared objects explicitly. Signed-off-by: Jérôme Duval --- build/jam/BootRules | 2 +- build/jam/KernelRules | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/jam/BootRules b/build/jam/BootRules index e66a6f9d0f..63efcc5237 100644 --- a/build/jam/BootRules +++ b/build/jam/BootRules @@ -145,5 +145,5 @@ rule BuildMBR binary : source actions BuildMBR { $(RM) $(1) - $(HAIKU_CC_$(HAIKU_PACKAGING_ARCH)) $(2) -o $(1) $(MBRFLAGS) -nostdlib -Xlinker --oformat=binary -Xlinker -S -Xlinker -N -Xlinker "-e start" -Xlinker "-Ttext=0x600" + $(HAIKU_CC_$(HAIKU_PACKAGING_ARCH)) $(2) -o $(1) $(MBRFLAGS) -nostdlib -Xlinker --oformat=binary -Xlinker -S -Xlinker -N -Xlinker --entry=start -Xlinker -Ttext=0x600 } diff --git a/build/jam/KernelRules b/build/jam/KernelRules index 7fc8b47762..11fda4f6e0 100644 --- a/build/jam/KernelRules +++ b/build/jam/KernelRules @@ -139,7 +139,7 @@ rule KernelAddon # compile and link SetupKernel $(sources) : : false ; - local linkFlags = -nostdlib -Xlinker --no-undefined + local linkFlags = -shared -nostdlib -Xlinker --no-undefined -Xlinker -soname=\"$(target:G=)\" $(TARGET_KERNEL_ADDON_LINKFLAGS) ; LINKFLAGS on $(target) = [ on $(target) return $(LINKFLAGS) ] $(linkFlags) ; Main $(target) : $(sources) ;