mirror of
https://github.com/drasko/codezero.git
synced 2026-07-22 15:15:24 +02:00
Added default linker script input file for bare containers
This commit is contained in:
26
scripts/bare/linker.lds.in
Normal file
26
scripts/bare/linker.lds.in
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
/*
|
||||||
|
* Example working linker script for this container.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2009 B Labs Ltd.
|
||||||
|
*/
|
||||||
|
|
||||||
|
vma_start = %s;
|
||||||
|
lma_start = %s;
|
||||||
|
offset = vma_start - lma_start;
|
||||||
|
|
||||||
|
ENTRY(_start)
|
||||||
|
|
||||||
|
SECTIONS
|
||||||
|
{
|
||||||
|
. = vma_start;
|
||||||
|
.text : AT (ADDR(.text) - offset) { *(.text.head) *(.text) }
|
||||||
|
.rodata : AT (ADDR(.rodata) - offset) { *(.rodata) }
|
||||||
|
.rodata1 : AT (ADDR(.rodata1) - offset) { *(.rodata1) }
|
||||||
|
|
||||||
|
. = ALIGN(4K);
|
||||||
|
.data : AT (ADDR(.data) - offset) { *(.data) }
|
||||||
|
.bss : AT (ADDR(.bss) - offset) { *(.bss) }
|
||||||
|
. += 0x1000;
|
||||||
|
. = ALIGN(8);
|
||||||
|
__stack = .;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user