source: mainline/uspace/lib/c/arch/amd64/_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
Line 
1STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)
2ENTRY(__entry)
3
4PHDRS {
5 text PT_LOAD FILEHDR PHDRS FLAGS(5);
6 data PT_LOAD FLAGS(6);
7 tls PT_TLS;
8 debug PT_NOTE;
9}
10
11SECTIONS {
12 . = SEGMENT_START("text-segment", 0x400000);
13#ifndef SHLIB
14 PROVIDE (__executable_start = .);
15#endif
16 . = . + SIZEOF_HEADERS;
17
18 .init : {
19 *(.init);
20 } :text
21
22 .text : {
23 *(.text .text.*);
24 *(.rodata .rodata.*);
25 } :text
26
27 . = . + 0x1000;
28
29 .data : {
30 *(.data);
31 *(.data.rel*);
32 } :data
33
34 .got.plt : {
35 *(.got.plt);
36 } :data
37
38 .tdata : {
39 *(.tdata);
40 *(.tdata.*);
41 *(.gnu.linkonce.td.*);
42 } :data :tls
43
44 .tbss : {
45 *(.tbss);
46 *(.tbss.*);
47 *(.gnu.linkonce.tb.*);
48 } :data :tls
49
50 .bss : {
51 *(COMMON);
52 *(.bss);
53 } :data
54
55 _end = .;
56
57#ifdef CONFIG_LINE_DEBUG
58 .comment 0 : { *(.comment); } :debug
59 .debug_abbrev 0 : { *(.debug_abbrev); } :debug
60 .debug_aranges 0 : { *(.debug_aranges); } :debug
61 .debug_info 0 : { *(.debug_info); } :debug
62 .debug_line 0 : { *(.debug_line); } :debug
63 .debug_loc 0 : { *(.debug_loc); } :debug
64 .debug_pubnames 0 : { *(.debug_pubnames); } :debug
65 .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug
66 .debug_ranges 0 : { *(.debug_ranges); } :debug
67 .debug_str 0 : { *(.debug_str); } :debug
68#endif
69
70 /DISCARD/ : {
71 *(*);
72 }
73}
Note: See TracBrowser for help on using the repository browser.