mirror of
https://github.com/drasko/codezero.git
synced 2026-07-14 19:25:24 +02:00
Changes since April
Clean up of build directories. Simplifications to capability model.
This commit is contained in:
@@ -9,54 +9,70 @@ physical_base = %s;
|
||||
|
||||
pager_offset = virtual_base - physical_base;
|
||||
|
||||
OUTPUT_ARCH(arm)
|
||||
ENTRY(_start)
|
||||
|
||||
PHDRS
|
||||
{
|
||||
rx PT_LOAD;
|
||||
rw PT_LOAD;
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
. = virtual_base;
|
||||
|
||||
/* Put all RX, RO sections here */
|
||||
__start_text = .;
|
||||
.text : AT (ADDR(.text) - pager_offset) {
|
||||
.text : AT (ADDR(.text) - pager_offset)
|
||||
{
|
||||
*(.text.head) *(.text)
|
||||
}
|
||||
} : rx = 0x90909090
|
||||
__end_text = .;
|
||||
|
||||
__start_rodata = .;
|
||||
.rodata : AT (ADDR(.rodata) - pager_offset) {
|
||||
.rodata : AT (ADDR(.rodata) - pager_offset)
|
||||
{
|
||||
*(.rodata)
|
||||
}
|
||||
.rodata1 : AT (ADDR(.rodata1) - pager_offset) {
|
||||
} : rx = 0x90909090
|
||||
.rodata1 : AT (ADDR(.rodata1) - pager_offset)
|
||||
{
|
||||
*(.rodata1)
|
||||
}
|
||||
} : rx = 0x90909090
|
||||
__end_rodata = .;
|
||||
|
||||
. = ALIGN(4K);
|
||||
|
||||
/* Put all RW sections here */
|
||||
__start_data = .;
|
||||
.data : AT (ADDR(.data) - pager_offset) {
|
||||
.data : AT (ADDR(.data) - pager_offset)
|
||||
{
|
||||
*(.data)
|
||||
}
|
||||
} : rw
|
||||
__end_data = .;
|
||||
|
||||
__start_bss = .;
|
||||
.bss : AT (ADDR(.bss) - pager_offset) {
|
||||
.bss : AT (ADDR(.bss) - pager_offset)
|
||||
{
|
||||
*(.bss)
|
||||
}
|
||||
. = ALIGN(4K);
|
||||
} : rw
|
||||
__end_bss = .;
|
||||
. += 0x2000; /* BSS doesnt increment link counter??? */
|
||||
|
||||
__start_stack = .;
|
||||
.stack : AT (ADDR(.stack) - pager_offset) {
|
||||
.stack : AT (ADDR(.stack) - pager_offset)
|
||||
{
|
||||
*(.stack)
|
||||
}
|
||||
. = ALIGN(4K);
|
||||
} : rw
|
||||
__stack = .; /* This is the preallocated boot stack */
|
||||
|
||||
/* Below part is to be discarded after boot */
|
||||
. = ALIGN(4K);
|
||||
__start_init = .;
|
||||
.init : AT (ADDR(.init) - pager_offset) {
|
||||
.init : AT (ADDR(.init) - pager_offset)
|
||||
{
|
||||
*(.init.data)
|
||||
*(.init.bootmem)
|
||||
}
|
||||
} : rw
|
||||
__end_init = .;
|
||||
__end = .;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <l4/macros.h>
|
||||
#include <l4/config.h>
|
||||
#include INC_GLUE(memory.h)
|
||||
#include <memcache/memcache.h>
|
||||
#include <mem/memcache.h>
|
||||
#include <lib/idpool.h>
|
||||
|
||||
/*
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define __VFS_H__
|
||||
|
||||
#include <fs.h>
|
||||
#include <malloc/malloc.h>
|
||||
#include <mem/malloc.h>
|
||||
#include <l4/lib/list.h>
|
||||
#include <memfs/memfs.h>
|
||||
#include <l4/macros.h>
|
||||
|
||||
Reference in New Issue
Block a user