source: mainline/uspace/lib/c/arch/riscv64/_link.ld.in@ 1b20da0

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

Revert change to the way startup file is referenced.

The path is not actually referenced in the output object itself.
It is only visible in the map generated by the linker, which
does not matter for reproducibility. Also, it would be infeasible
to provide reproducible map files with a proper HelenOS-targeted
toolchain. Coastline breakage begone!

  • Property mode set to 100644
File size: 1.3 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 . = 0x70001000 + SIZEOF_HEADERS;
18#else
19 . = 0x1000 + SIZEOF_HEADERS;
20#endif
21
22 .text : {
23 *(.text .text.*);
24 *(.rodata .rodata.*);
25 *(.srodata .srodata.*);
26 } :text
27
28#ifdef LOADER
29 .interp : {
30 *(.interp);
31 } :interp :text
32#endif
33
34 . = . + 0x1000;
35
36 .data : {
37 *(.data);
38 *(.sdata);
39 *(.data.rel*);
40 } :data
41
42 .tdata : {
43 _tdata_start = .;
44 *(.tdata);
45 *(.gnu.linkonce.tb.*);
46 _tdata_end = .;
47 _tbss_start = .;
48 *(.tbss);
49 _tbss_end = .;
50 } :data
51
52 _tls_alignment = ALIGNOF(.tdata);
53
54 .sbss : {
55 *(.scommon);
56 *(.sbss);
57 }
58
59 .bss : {
60 *(COMMON);
61 *(.bss);
62 } :data
63
64#ifdef CONFIG_LINE_DEBUG
65 .comment 0 : { *(.comment); } :debug
66 .debug_abbrev 0 : { *(.debug_abbrev); } :debug
67 .debug_aranges 0 : { *(.debug_aranges); } :debug
68 .debug_info 0 : { *(.debug_info); } :debug
69 .debug_line 0 : { *(.debug_line); } :debug
70 .debug_loc 0 : { *(.debug_loc); } :debug
71 .debug_pubnames 0 : { *(.debug_pubnames); } :debug
72 .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug
73 .debug_ranges 0 : { *(.debug_ranges); } :debug
74 .debug_str 0 : { *(.debug_str); } :debug
75#endif
76
77 /DISCARD/ : {
78 *(*);
79 }
80}
Note: See TracBrowser for help on using the repository browser.