source: mainline/uspace/lib/c/arch/sparc64/_link.ld.in@ aa537a5a

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since aa537a5a 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 . = 0x70004000 + SIZEOF_HEADERS;
18#else
19 . = 0x4000 + SIZEOF_HEADERS;
20#endif
21
22 .init : {
23 *(.init);
24 } :text
25
26 .text : {
27 *(.text .text.*);
28 *(.rodata .rodata.*);
29 } :text
30
31#ifdef LOADER
32 .interp : {
33 *(.interp);
34 } :interp :text
35#endif
36
37 . = . + 0x4000;
38
39 .got : {
40 _gp = .;
41 *(.got*);
42 } :data
43
44 .data : {
45 *(.data);
46 *(.sdata);
47 } :data
48
49 .tdata : {
50 _tdata_start = .;
51 *(.tdata);
52 _tdata_end = .;
53 _tbss_start = .;
54 *(.tbss);
55 _tbss_end = .;
56 } :data
57
58 _tls_alignment = ALIGNOF(.tdata);
59
60 .bss : {
61 *(.sbss);
62 *(COMMON);
63 *(.bss);
64 } :data
65
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
79 /DISCARD/ : {
80 *(*);
81 }
82}
Note: See TracBrowser for help on using the repository browser.