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

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

ia32: improve linker scripts

  • Property mode set to 100644
File size: 1.3 KB
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 */
5
6STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
7ENTRY(__entry)
8
9PHDRS {
10 interp PT_INTERP;
11 text PT_LOAD FILEHDR PHDRS FLAGS(5);
12 data PT_LOAD FLAGS(6);
13 debug PT_NOTE;
14}
15
16SECTIONS {
17 .interp : {
18 *(.interp);
19 } :interp
20
21 . = 0x70001000;
22
23 .init ALIGN(0x1000) : SUBALIGN(0x1000) {
24 *(.init);
25 } :text
26
27 .text : {
28 *(.text .text.*);
29 *(.rodata .rodata.*);
30 } :text
31
32 .data ALIGN(0x1000) : SUBALIGN(0x1000) {
33 *(.data);
34 } :data
35
36 .tdata : {
37 _tdata_start = .;
38 *(.tdata);
39 *(.gnu.linkonce.tb.*);
40 _tdata_end = .;
41 } :data
42
43 .tbss : {
44 _tbss_start = .;
45 *(.tbss);
46 _tbss_end = .;
47 } :data
48
49 _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
50
51 .bss : {
52 *(COMMON);
53 *(.bss);
54 } :data
55
56#ifdef CONFIG_LINE_DEBUG
57 .comment 0 : { *(.comment); } :debug
58 .debug_abbrev 0 : { *(.debug_abbrev); } :debug
59 .debug_aranges 0 : { *(.debug_aranges); } :debug
60 .debug_info 0 : { *(.debug_info); } :debug
61 .debug_line 0 : { *(.debug_line); } :debug
62 .debug_loc 0 : { *(.debug_loc); } :debug
63 .debug_pubnames 0 : { *(.debug_pubnames); } :debug
64 .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug
65 .debug_ranges 0 : { *(.debug_ranges); } :debug
66 .debug_str 0 : { *(.debug_str); } :debug
67#endif
68
69 /DISCARD/ : {
70 *(*);
71 }
72}
Note: See TracBrowser for help on using the repository browser.