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
RevLine 
[eca820c]1STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)
[1a030b8]2ENTRY(__entry)
3
[d03e156]4PHDRS {
[47b2d7e3]5 text PT_LOAD FILEHDR PHDRS FLAGS(5);
[a3aa1e1]6 data PT_LOAD FLAGS(6);
[2c4e1cc]7 tls PT_TLS;
[1e00216]8 debug PT_NOTE;
[d03e156]9}
10
[1a030b8]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 : {
[a3aa1e1]19 *(.init);
20 } :text
[f1380b7]21
[a3aa1e1]22 .text : {
[d21e72db]23 *(.text .text.*);
24 *(.rodata .rodata.*);
[a3aa1e1]25 } :text
[f1380b7]26
[1cc2974]27 . = . + 0x1000;
[f1380b7]28
[1cc2974]29 .data : {
[a3aa1e1]30 *(.data);
[82a6d4ee]31 *(.data.rel*);
[a3aa1e1]32 } :data
[f1380b7]33
[1890f2a2]34 .got.plt : {
35 *(.got.plt);
36 } :data
37
[c4c5de5]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
[a3aa1e1]50 .bss : {
51 *(COMMON);
52 *(.bss);
53 } :data
[f1380b7]54
[a69d42e]55 _end = .;
56
[1e00216]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
[f1380b7]69
[d03e156]70 /DISCARD/ : {
[a3aa1e1]71 *(*);
[d03e156]72 }
[1a030b8]73}
Note: See TracBrowser for help on using the repository browser.