Files
codezero/loader/linker.lds
Bahadir Balban 6538e70b39 Fixed few issues with loader and basic image loading.
Declaring section of the form:

.align 4
.section "kernel"
.incbin "path-to-kernel"

And defining a linker variable before the section output does not always seem to work.
The linker seems to add padding even though .align directive comes before .section

	modified:   SConstruct.loader
	modified:   loader/linker.lds
	modified:   loader/main.c
2009-09-17 19:19:03 +03:00

28 lines
439 B
Plaintext

/*
* Loader linker script that contains kernel and container images
*
* Copyright (C) 2008-2009 B Labs Ltd.
*/
ENTRY(_start)
SECTIONS
{
. = 0x2000000;
.text : { *(.text) }
.rodata : { *(.rodata) }
.rodata1 : { *(.rodata1) }
.data :
{
_start_kernel = .;
*(.kernel)
_end_kernel = .;
_start_containers = .;
*(.containers)
_end_containers = .;
*(.data)
}
.got : { *(.got) *(.got.plt) }
.bss : { *(.bss) }
}