source: mainline/uspace/lib/c/arch/amd64/_link.ld.in@ 77a69ea

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 77a69ea was c53d906, checked in by Jiri Svoboda <jiri@…>, 14 years ago

Merge linker script for the loader into the default linker script in C
library.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)
2ENTRY(__entry)
3
4PHDRS {
5#ifdef LOADER
6 interp PT_INTERP;
7 text PT_LOAD FILEHDR PHDRS FLAGS(5);
8#else
9 text PT_LOAD FLAGS(5);
10#endif
11 data PT_LOAD FLAGS(6);
12 debug PT_NOTE;
13}
14
15SECTIONS {
16#ifdef LOADER
17 .interp : {
18 *(.interp);
19 } :interp
20
21 . = 0x70001000 + SIZEOF_HEADERS;
22#else
23 . = 0x1000 + SIZEOF_HEADERS;
24#endif
25 .init : {
26 *(.init);
27 } :text
28
29 .text : {
30 *(.text .text.*);
31 *(.rodata .rodata.*);
32 } :text
33
34 . = . + 0x1000;
35
36 .data : {
37 *(.data);
38 } :data
39
40 .tdata : {
41 _tdata_start = .;
42 *(.tdata);
43 _tdata_end = .;
44 _tbss_start = .;
45 *(.tbss);
46 _tbss_end = .;
47 } :data
48
49 _tls_alignment = ALIGNOF(.tdata);
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.