Don't override the standard SYSTEM_LD setting from kern.pre.mk.
Instead, use the linker script to record the correct entry point.
This commit is contained in:
parent
18e47b55a9
commit
1a17c23db2
@ -28,11 +28,6 @@ S= ../../..
|
||||
.endif
|
||||
.include "$S/conf/kern.pre.mk"
|
||||
|
||||
SYSTEM_LD= @${LD} -Bdynamic -T $S/conf/ldscript.$M \
|
||||
-e locorestart \
|
||||
-export-dynamic -dynamic-linker /red/herring \
|
||||
-o ${.TARGET} -X ${SYSTEM_OBJS} vers.o
|
||||
|
||||
%BEFORE_DEPEND
|
||||
|
||||
%OBJS
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* $FreeBSD$ */
|
||||
OUTPUT_FORMAT("elf64-alpha-freebsd", "elf64-alpha-freebsd", "elf64-alpha-freebsd")
|
||||
OUTPUT_ARCH(alpha)
|
||||
ENTRY(__start)
|
||||
ENTRY(locorestart)
|
||||
SEARCH_DIR(/usr/lib);
|
||||
kernel_text = kernbase;
|
||||
SECTIONS
|
||||
|
Loading…
Reference in New Issue
Block a user