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:
Bahadir Balban
2009-09-26 22:12:11 +03:00
parent aae84b5eb3
commit 6dc68c1776
2 changed files with 10 additions and 1 deletions

View File

@@ -52,3 +52,4 @@ src += Glob('src/*.[cS]')
objs = env.Object(src)
prog = env.Program('main.elf', objs)
Depends(prog, 'include/linker.lds')

View File

@@ -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) }