mirror of
https://github.com/drasko/codezero.git
synced 2026-02-03 05:33:18 +01:00
A few changes to allow development on conts/test directory.
Now, bare containers get their files from conts/bare_src instead of conts/test. test directory will be used for the next generation test programs. Also bare_src is tracked by git now with a minor mod to .gitignore.
This commit is contained in:
34
conts/bare_src/include/linker.lds
Normal file
34
conts/bare_src/include/linker.lds
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* 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) {
|
||||
/*
|
||||
* 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) }
|
||||
|
||||
. = ALIGN(4K);
|
||||
.data : AT (ADDR(.data) - offset) { *(.data) }
|
||||
.bss : AT (ADDR(.bss) - offset) { *(.bss) }
|
||||
. += 0x1000;
|
||||
. = ALIGN(8);
|
||||
__stack = .;
|
||||
}
|
||||
0
conts/bare_src/include/test.h
Normal file
0
conts/bare_src/include/test.h
Normal file
Reference in New Issue
Block a user