diff options
Diffstat (limited to 'bootstrap/stage2/arch')
-rw-r--r-- | bootstrap/stage2/arch/x86_64/linker.ld | 21 | ||||
-rw-r--r-- | bootstrap/stage2/arch/x86_64/make.config | 6 |
2 files changed, 27 insertions, 0 deletions
diff --git a/bootstrap/stage2/arch/x86_64/linker.ld b/bootstrap/stage2/arch/x86_64/linker.ld new file mode 100644 index 0000000..04b6148 --- /dev/null +++ b/bootstrap/stage2/arch/x86_64/linker.ld @@ -0,0 +1,21 @@ +ENTRY(bootstrap_main) + +SECTIONS { + . = 0x2000; + __bstart = .; + + .text : { + *(.text) + } + + .data : { + *(.data) + } + + .bss : { + *(.bss) + *(COMMON) + } + + __bend = .; +} diff --git a/bootstrap/stage2/arch/x86_64/make.config b/bootstrap/stage2/arch/x86_64/make.config new file mode 100644 index 0000000..3c73a35 --- /dev/null +++ b/bootstrap/stage2/arch/x86_64/make.config @@ -0,0 +1,6 @@ +STAGE2_ARCH_INCLUDE=-I$(ARCHDIR)/include +STAGE2_ARCH_CFLAGS=-target x86_64-pc-none-elf -mno-red-zone -mno-mmx -mno-sse -mno-sse2 +STAGE2_ARCH_LDFLAGS= +STAGE2_ARCH_LIBS= + +STAGE2_ARCH_OBJS= |