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
This commit is contained in:
Bahadir Balban
2009-09-17 19:19:03 +03:00
parent 6a654a9dc5
commit 6538e70b39
3 changed files with 28 additions and 7 deletions

View File

@@ -13,7 +13,6 @@ SECTIONS
.rodata1 : { *(.rodata1) }
.data :
{
*(.data)
_start_kernel = .;
*(.kernel)
_end_kernel = .;
@@ -21,6 +20,7 @@ SECTIONS
_start_containers = .;
*(.containers)
_end_containers = .;
*(.data)
}
.got : { *(.got) *(.got.plt) }
.bss : { *(.bss) }