-
Notifications
You must be signed in to change notification settings - Fork 5
/
linux.link
54 lines (51 loc) · 2.18 KB
/
linux.link
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
53
/*==============================================================================
* FILE: linux.link
* OVERVIEW: This is the prototype linux linker script file (or a copy of it)
* used to build Linux binaries with the data sections at the
* correct (original) addresses. The start addresses of the
* sections in this file are strings starting with "$", e.g.
* $ dstartro for the start of the read only data section; these
* strings are changed to the actual values using linker.sed and\
* the "sed" stream editing tool.
*
* Copyright (C) 1999, The University of Queensland, BT group
*============================================================================*/
SEARCH_DIR(/lib);
SEARCH_DIR(/usr/lib);
SEARCH_DIR(/usr/local/lib);
SEARCH_DIR(/usr/i486-linux/lib);
MEMORY {
RO (ra) : ORIGIN = 0x9000000, LENGTH = 16M
RW (rwa) : ORIGIN = 0xa000000, LENGTH = 16M
}
SECTIONS {
. = 0x08000000;
.interp : { *(.interp) } >RO
.note.ABI-tag : { *(.note.ABI-tag) } >RO
.hash : { *(.hash) } >RO
.dynsym : { *(.dynsym) } >RO
.dynstr : { *(.dynstr) } >RO
.gnu.version : { *(.gnu.version) } >RO
.gnu.version_r : { *(.gnu.version_r) } >RO
.rel.got : { *(.rel.got) } >RO
.rel.plt : { *(.rel.plt) } >RO
.init : { * (.init) } >RO
.plt : { *(.plt) } >RO
.text : { * (.text) } >RO
.fini : { * (.fini) } >RO
.rodata : { *(.rodata) } >RO
.data : { *(.data) } >RW
.eh_frame : { *(.eh_frame) } >RW
.ctors : { *(.ctors) } >RW
.dtors : { *(.dtors) } >RW
.got : { *(.got.plt) *(.got) } >RW /* Very important! */
.dynamic : { *(.dynamic) }
.bss : { *(.bss) *(COMMON) } >RW
.stab : { *(.stab) }
.stabstr : { *(.stabstr) }
.comment : { *(.comment) }
.note : { *(.note) }
.uqbt.code 0x$cstart : { *(.uqbt.code) }
.uqbt.rodata 0x$dstartro : { *(.uqbt.rodata) }
.uqbt.data 0x$dstartrw : { *(.uqbt.data) }
}