source: mainline/uspace/lib/c/arch/riscv64/_link.ld.in@ 584121d

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 584121d was 584121d, checked in by jzr <zarevucky.jiri@…>, 8 years ago

Move reference to the startup object file (entry.o) out of the linker script.

The absolute path breaks reproducibility.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1ENTRY(__entry)
2
3PHDRS {
4#ifdef LOADER
5 interp PT_INTERP;
6 text PT_LOAD FILEHDR PHDRS FLAGS(5);
7#else
8 text PT_LOAD FLAGS(5);
9#endif
10 data PT_LOAD FLAGS(6);
11 debug PT_NOTE;
12}
13
14SECTIONS {
15#ifdef LOADER
16 . = 0x70001000 + SIZEOF_HEADERS;
17#else
18 . = 0x1000 + SIZEOF_HEADERS;
19#endif
20
21 .text : {
22 *(.text .text.*);
23 *(.rodata .rodata.*);
24 *(.srodata .srodata.*);
25 } :text
26
27#ifdef LOADER
28 .interp : {
29 *(.interp);
30 } :interp :text
31#endif
32
33 . = . + 0x1000;
34
35 .data : {
36 *(.data);
37 *(.sdata);
38 *(.data.rel*);
39 } :data
40
41 .tdata : {
42 _tdata_start = .;
43 *(.tdata);
44 *(.gnu.linkonce.tb.*);
45 _tdata_end = .;
46 _tbss_start = .;
47 *(.tbss);
48 _tbss_end = .;
49 } :data
50
51 _tls_alignment = ALIGNOF(.tdata);
52
53 .sbss : {
54 *(.scommon);
55 *(.sbss);
56 }
57
58 .bss : {
59 *(COMMON);
60 *(.bss);
61 } :data
62
63#ifdef CONFIG_LINE_DEBUG
64 .comment 0 : { *(.comment); } :debug
65 .debug_abbrev 0 : { *(.debug_abbrev); } :debug
66 .debug_aranges 0 : { *(.debug_aranges); } :debug
67 .debug_info 0 : { *(.debug_info); } :debug
68 .debug_line 0 : { *(.debug_line); } :debug
69 .debug_loc 0 : { *(.debug_loc); } :debug
70 .debug_pubnames 0 : { *(.debug_pubnames); } :debug
71 .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug
72 .debug_ranges 0 : { *(.debug_ranges); } :debug
73 .debug_str 0 : { *(.debug_str); } :debug
74#endif
75
76 /DISCARD/ : {
77 *(*);
78 }
79}
Note: See TracBrowser for help on using the repository browser.