Skip to content

Commit

Permalink
Add ldscript.
Browse files Browse the repository at this point in the history
  • Loading branch information
EdSchouten committed Apr 13, 2010
1 parent 90c14bd commit 8824e41
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions kernel/ldscript.x86_64
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64", "elf64-x86-64")
OUTPUT_ARCH(i386:x86-64)

ENTRY(kinit)

SECTIONS
{
. = 0xffffffff80000000;
}
4 changes: 2 additions & 2 deletions share/mk/noa.kernel.mk
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.include <noa.sys.mk>

CFLAGS+=-D_KERNEL
CFLAGS+=-D_KERNEL -fpic
LD=ld
LDFLAGS+=-e kinit -warn-common -X
LDFLAGS+=-warn-common -X -T ${.CURDIR}/ldscript.${MACHINE}

OBJS+= ${SRCS:N*.h:R:S/$/.o/}

Expand Down

0 comments on commit 8824e41

Please sign in to comment.