From 6c54c3f059b5fcd96ee54d405a24f22cd845446a Mon Sep 17 00:00:00 2001 From: Bahadir Balban Date: Sat, 19 Sep 2009 12:37:59 +0300 Subject: [PATCH] Added default linker script input file for bare containers --- scripts/bare/linker.lds.in | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 scripts/bare/linker.lds.in diff --git a/scripts/bare/linker.lds.in b/scripts/bare/linker.lds.in new file mode 100644 index 0000000..ab525c4 --- /dev/null +++ b/scripts/bare/linker.lds.in @@ -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 = .; +}