From eaae11e17f022188755c67e4dd3436875e84110d Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 20 May 2015 17:09:34 +0200 Subject: make a bootable BIOS includes source from kvm-unit-tests Signed-off-by: Paolo Bonzini --- flat.lds | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 flat.lds (limited to 'flat.lds') diff --git a/flat.lds b/flat.lds new file mode 100644 index 0000000..d12b835 --- /dev/null +++ b/flat.lds @@ -0,0 +1,24 @@ +OUTPUT_ARCH(i386) + +SECTIONS +{ + . = 1024K - 64K; + .text : { *(.text.startup) *(.text) *(.text.*) } + . = ALIGN(4K); + .data : { *(.data) } + . = ALIGN(16); + .rodata : { *(.rodata) } + . = ALIGN(16); + .bss : { *(.bss) } + . = ALIGN(4K); + . = 1024K - 128; + .init : { + *(.init); + . = 128 - 16; + *(.resetvector); + . = 128; + } +} + +ENTRY(main) + -- cgit v1.1