mirror of
https://github.com/drasko/codezero.git
synced 2026-05-04 17:41:30 +02:00
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:
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user