-
Notifications
You must be signed in to change notification settings - Fork 4
/
link.scr
52 lines (47 loc) · 1.49 KB
/
link.scr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
Copyright (c) 1996-1997 Swiss Federal Institute of Technology,
Computer Engineering and Networks Laboratory. All rights reserved.
TOPSY - A Teachable Operating System.
Implementation of a tiny and simple micro kernel for
teaching purposes.
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose, without fee, and without written
agreement is hereby granted, provided that the above copyright notice
and the following two paragraphs appear in all copies of this software.
File: $Source: /proj/topsy/ss98/Topsy/RCS/link.scr,v $
Author(s): George Fankhauser
Affiliation: ETH Zuerich, TIK
Version: $Revision: 1.6 $
Creation Date:
Last Date of Change: $Date: 1998/03/31 17:56:54 $ by: $Author: gfa $
*/
OUTPUT_FORMAT("elf32-bigmips")
ENTRY(__start)
SECTIONS
{
/* kernel code is relocated to start at 0x80020000 which leaves
* room for the boot stack (starting at the same address but grows
* downwards on most processors) and the exception vectors of the mips
*/
.text 0x80020000 : {
*(.init)
*(.text)
*(.fini)
}
/* start at a fresh page for the data */
. = ALIGN(0x1000);
.rodata . : {
*(.rodata)
}
.data . : {
*(.data)
}
.sbss . : {
*(.sbss)
*(.scommon)
}
.bss . : {
*(.bss)
*(COMMON)
}
}