Test program for bare repos now links with libl4 and libc.

The userspace bare libc has been re-added to the repo.
This commit is contained in:
Bahadir Balban
2009-09-19 12:30:37 +03:00
parent e4f80c4579
commit 19a84b02da
6 changed files with 152 additions and 18 deletions

View File

@@ -0,0 +1,26 @@
/*
* Example working linker script for this container.
*
* Copyright (C) 2009 B Labs Ltd.
*/
vma_start = 0x0;
lma_start = 0x1000000;
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 = .;
}