source: mainline/uspace/lib/c/arch/amd64/_link.ld.in@ 64b5d15

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 64b5d15 was d21e72db, checked in by Martin Decky <martin@…>, 15 years ago

amd64: improve linker scripts

  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[1b1164e8]1STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)
[1a030b8]2ENTRY(__entry)
3
[d03e156]4PHDRS {
[a3aa1e1]5 text PT_LOAD FLAGS(5);
6 data PT_LOAD FLAGS(6);
[1e00216]7 debug PT_NOTE;
[d03e156]8}
9
[1a030b8]10SECTIONS {
[1cc2974]11 . = 0x1000 + SIZEOF_HEADERS;
[a3aa1e1]12
[1cc2974]13 .init : {
[a3aa1e1]14 *(.init);
15 } :text
[1e00216]16
[a3aa1e1]17 .text : {
[d21e72db]18 *(.text .text.*);
19 *(.rodata .rodata.*);
[a3aa1e1]20 } :text
[1e00216]21
[1cc2974]22 . = . + 0x1000;
[1e00216]23
[1cc2974]24 .data : {
[a3aa1e1]25 *(.data);
26 } :data
[1e00216]27
[c4c5de5]28 .tdata : {
29 _tdata_start = .;
30 *(.tdata);
31 _tdata_end = .;
32 _tbss_start = .;
33 *(.tbss);
34 _tbss_end = .;
35 } :data
[1e00216]36
[e622f0a8]37 _tls_alignment = ALIGNOF(.tdata);
[1e00216]38
[a3aa1e1]39 .bss : {
40 *(COMMON);
41 *(.bss);
42 } :data
[1e00216]43
44#ifdef CONFIG_LINE_DEBUG
45 .comment 0 : { *(.comment); } :debug
46 .debug_abbrev 0 : { *(.debug_abbrev); } :debug
47 .debug_aranges 0 : { *(.debug_aranges); } :debug
48 .debug_info 0 : { *(.debug_info); } :debug
49 .debug_line 0 : { *(.debug_line); } :debug
50 .debug_loc 0 : { *(.debug_loc); } :debug
51 .debug_pubnames 0 : { *(.debug_pubnames); } :debug
52 .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug
53 .debug_ranges 0 : { *(.debug_ranges); } :debug
54 .debug_str 0 : { *(.debug_str); } :debug
55#endif
56
[d03e156]57 /DISCARD/ : {
[a3aa1e1]58 *(*);
[d03e156]59 }
[1a030b8]60}
Note: See TracBrowser for help on using the repository browser.