source:
mainline/uspace/lib/c/arch/sparc64/_link.ld.in@
2a7749d7
Last change on this file since 2a7749d7 was 3c5916cb, checked in by , 11 years ago | |
---|---|
|
|
File size: 1.3 KB |
Rev | Line | |
---|---|---|
[1b1164e8] | 1 | STARTUP(LIBC_PATH/arch/UARCH/src/entry.o) |
[bb5b950] | 2 | ENTRY(__entry) |
3 | ||
4 | PHDRS { | |
[c53d906] | 5 | #ifdef LOADER |
6 | interp PT_INTERP; | |
7 | text PT_LOAD FILEHDR PHDRS FLAGS(5); | |
8 | #else | |
[bb5b950] | 9 | text PT_LOAD FLAGS(5); |
[c53d906] | 10 | #endif |
[bb5b950] | 11 | data PT_LOAD FLAGS(6); |
[3c5916cb] | 12 | debug PT_NOTE; |
[bb5b950] | 13 | } |
14 | ||
15 | SECTIONS { | |
[c53d906] | 16 | #ifdef LOADER |
[e1c0260] | 17 | . = 0x70004000 + SIZEOF_HEADERS; |
[c53d906] | 18 | #else |
19 | . = 0x4000 + SIZEOF_HEADERS; | |
20 | #endif | |
[e1c0260] | 21 | |
[1cc2974] | 22 | .init : { |
[bb5b950] | 23 | *(.init); |
24 | } :text | |
[5e8b881] | 25 | |
[bb5b950] | 26 | .text : { |
[eaf4c393] | 27 | *(.text .text.*); |
28 | *(.rodata .rodata.*); | |
[bb5b950] | 29 | } :text |
[5e8b881] | 30 | |
[0783634] | 31 | #ifdef LOADER |
32 | .interp : { | |
33 | *(.interp); | |
34 | } :interp :text | |
35 | #endif | |
36 | ||
[1cc2974] | 37 | . = . + 0x4000; |
[5e8b881] | 38 | |
[1cc2974] | 39 | .got : { |
[cfa70add] | 40 | _gp = .; |
41 | *(.got*); | |
42 | } :data | |
[5e8b881] | 43 | |
[1cc2974] | 44 | .data : { |
[bb5b950] | 45 | *(.data); |
46 | *(.sdata); | |
47 | } :data | |
[5e8b881] | 48 | |
[bb5b950] | 49 | .tdata : { |
50 | _tdata_start = .; | |
51 | *(.tdata); | |
52 | _tdata_end = .; | |
53 | _tbss_start = .; | |
54 | *(.tbss); | |
55 | _tbss_end = .; | |
56 | } :data | |
[5e8b881] | 57 | |
[e622f0a8] | 58 | _tls_alignment = ALIGNOF(.tdata); |
[5e8b881] | 59 | |
[bb5b950] | 60 | .bss : { |
61 | *(.sbss); | |
62 | *(COMMON); | |
63 | *(.bss); | |
64 | } :data | |
65 | ||
[3c5916cb] | 66 | #ifdef CONFIG_LINE_DEBUG |
67 | .comment 0 : { *(.comment); } :debug | |
68 | .debug_abbrev 0 : { *(.debug_abbrev); } :debug | |
69 | .debug_aranges 0 : { *(.debug_aranges); } :debug | |
70 | .debug_info 0 : { *(.debug_info); } :debug | |
71 | .debug_line 0 : { *(.debug_line); } :debug | |
72 | .debug_loc 0 : { *(.debug_loc); } :debug | |
73 | .debug_pubnames 0 : { *(.debug_pubnames); } :debug | |
74 | .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug | |
75 | .debug_ranges 0 : { *(.debug_ranges); } :debug | |
76 | .debug_str 0 : { *(.debug_str); } :debug | |
77 | #endif | |
78 | ||
[bb5b950] | 79 | /DISCARD/ : { |
80 | *(*); | |
81 | } | |
82 | } |
Note:
See TracBrowser
for help on using the repository browser.