source: mainline/uspace/srv/loader/arch/ia32/_link.ld.in@ 3698e44

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 3698e44 was f563126, checked in by Martin Decky <martin@…>, 16 years ago

make uspace pass compilation with clang

  • Property mode set to 100644
File size: 869 bytes
Line 
1/*
2 * The difference from _link.ld.in for regular statically-linked apps
3 * is the base address and the special interp section.
4 */
5STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
6ENTRY(__entry)
7
8PHDRS {
9 interp PT_INTERP;
10 text PT_LOAD FILEHDR PHDRS FLAGS(5);
11 data PT_LOAD FLAGS(6);
12}
13
14SECTIONS {
15 .interp : {
16 *(.interp);
17 } :interp
18
19 . = 0x70001000;
20
21 .init ALIGN(0x1000) : SUBALIGN(0x1000) {
22 *(.init);
23 } :text
24
25 .text : {
26 *(.text);
27 *(.rodata*);
28 } :text
29
30 .data ALIGN(0x1000) : SUBALIGN(0x1000) {
31 *(.data);
32 } :data
33
34 .tdata : {
35 _tdata_start = .;
36 *(.tdata);
37 *(.gnu.linkonce.tb.*);
38 _tdata_end = .;
39 } :data
40
41 .tbss : {
42 _tbss_start = .;
43 *(.tbss);
44 _tbss_end = .;
45 } :data
46
47 _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
48
49 .bss : {
50 *(COMMON);
51 *(.bss);
52 } :data
53
54 . = ALIGN(0x1000);
55
56 _heap = .;
57
58 /DISCARD/ : {
59 *(*);
60 }
61}
Note: See TracBrowser for help on using the repository browser.