Build without linker warnings about missing entry symbols.
* 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 <[email protected]>
This commit is contained in:
committed by
Jérôme Duval
parent
c4d22bb933
commit
9e5091d7a3
+1
-1
@@ -145,5 +145,5 @@ rule BuildMBR binary : source
|
|||||||
actions BuildMBR
|
actions BuildMBR
|
||||||
{
|
{
|
||||||
$(RM) $(1)
|
$(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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ rule KernelAddon
|
|||||||
|
|
||||||
# compile and link
|
# compile and link
|
||||||
SetupKernel $(sources) : : false ;
|
SetupKernel $(sources) : : false ;
|
||||||
local linkFlags = -nostdlib -Xlinker --no-undefined
|
local linkFlags = -shared -nostdlib -Xlinker --no-undefined
|
||||||
-Xlinker -soname=\"$(target:G=)\" $(TARGET_KERNEL_ADDON_LINKFLAGS) ;
|
-Xlinker -soname=\"$(target:G=)\" $(TARGET_KERNEL_ADDON_LINKFLAGS) ;
|
||||||
LINKFLAGS on $(target) = [ on $(target) return $(LINKFLAGS) ] $(linkFlags) ;
|
LINKFLAGS on $(target) = [ on $(target) return $(LINKFLAGS) ] $(linkFlags) ;
|
||||||
Main $(target) : $(sources) ;
|
Main $(target) : $(sources) ;
|
||||||
|
|||||||
Reference in New Issue
Block a user