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

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 4f205248 was a69d42e, checked in by Jiří Zárevúcky <jiri.zarevucky@…>, 7 years ago

Define _end, and use it instead of the address of __entry in C code.

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[eca820c]1STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)
[bb5b950]2ENTRY(__entry)
3
4PHDRS {
[47b2d7e3]5 text PT_LOAD FILEHDR PHDRS FLAGS(5);
[bb5b950]6 data PT_LOAD FLAGS(6);
[2c4e1cc]7 tls PT_TLS;
[3c5916cb]8 debug PT_NOTE;
[bb5b950]9}
10
11SECTIONS {
[47b2d7e3]12 . = SEGMENT_START("text-segment", 0x400000);
13#ifndef SHLIB
14 PROVIDE (__executable_start = .);
[c53d906]15#endif
[47b2d7e3]16 . = . + SIZEOF_HEADERS;
[f1380b7]17
[1cc2974]18 .init : {
[bb5b950]19 *(.init);
20 } :text
[f1380b7]21
[bb5b950]22 .text : {
[eaf4c393]23 *(.text .text.*);
24 *(.rodata .rodata.*);
[bb5b950]25 } :text
[f1380b7]26
[1cc2974]27 . = . + 0x4000;
[f1380b7]28
[1cc2974]29 .got : {
[cfa70add]30 *(.got*);
31 } :data
[f1380b7]32
[1cc2974]33 .data : {
[bb5b950]34 *(.data);
35 *(.sdata);
36 } :data
[f1380b7]37
[bb5b950]38 .tdata : {
39 *(.tdata);
[2c4e1cc]40 *(.tdata.*);
41 *(.gnu.linkonce.td.*);
42 } :data :tls
[f1380b7]43
[2c4e1cc]44 .tbss : {
45 *(.tbss);
46 *(.tbss.*);
47 *(.gnu.linkonce.tb.*);
48 } :data :tls
[f1380b7]49
[bb5b950]50 .bss : {
51 *(.sbss);
52 *(COMMON);
53 *(.bss);
54 } :data
[f1380b7]55
[a69d42e]56 _end = .;
57
[3c5916cb]58#ifdef CONFIG_LINE_DEBUG
59 .comment 0 : { *(.comment); } :debug
60 .debug_abbrev 0 : { *(.debug_abbrev); } :debug
61 .debug_aranges 0 : { *(.debug_aranges); } :debug
62 .debug_info 0 : { *(.debug_info); } :debug
63 .debug_line 0 : { *(.debug_line); } :debug
64 .debug_loc 0 : { *(.debug_loc); } :debug
65 .debug_pubnames 0 : { *(.debug_pubnames); } :debug
66 .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug
67 .debug_ranges 0 : { *(.debug_ranges); } :debug
68 .debug_str 0 : { *(.debug_str); } :debug
69#endif
[f1380b7]70
[bb5b950]71 /DISCARD/ : {
72 *(*);
73 }
74}
Note: See TracBrowser for help on using the repository browser.