mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 02:43:15 +01:00
Force rebuild of bare containers when their linker script changes.
Small change but useful since linker address configuration changes should force relinking of container executables.
This commit is contained in:
@@ -52,3 +52,4 @@ src += Glob('src/*.[cS]')
|
||||
|
||||
objs = env.Object(src)
|
||||
prog = env.Program('main.elf', objs)
|
||||
Depends(prog, 'include/linker.lds')
|
||||
|
||||
@@ -13,7 +13,15 @@ ENTRY(_start)
|
||||
SECTIONS
|
||||
{
|
||||
. = vma_start;
|
||||
.text : AT (ADDR(.text) - offset) { *(.text.head) *(.text) }
|
||||
.text : AT (ADDR(.text) - offset) {
|
||||
/*
|
||||
* NOTE:
|
||||
* crt0.S must be in .text.head. This is necessary because
|
||||
* the kernel does not know any _start address, it assumes
|
||||
* the start address of pager region as the start address.
|
||||
*/
|
||||
*(.text.head) *(.text)
|
||||
}
|
||||
.rodata : AT (ADDR(.rodata) - offset) { *(.rodata) }
|
||||
.rodata1 : AT (ADDR(.rodata1) - offset) { *(.rodata1) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user