source: mainline/uspace/srv/loader/arch/ia32/_link.ld.in@ c7fbb90

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

ia32: improve linker scripts

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[fcd7053]1/*
[c98e6ee]2 * The difference from _link.ld.in for regular statically-linked apps
3 * is the base address and the special interp section.
4 */
[1e00216]5
[fcd7053]6STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
[c98e6ee]7ENTRY(__entry)
8
9PHDRS {
10 interp PT_INTERP;
[f563126]11 text PT_LOAD FILEHDR PHDRS FLAGS(5);
[c98e6ee]12 data PT_LOAD FLAGS(6);
[1e00216]13 debug PT_NOTE;
[c98e6ee]14}
15
16SECTIONS {
17 .interp : {
18 *(.interp);
19 } :interp
[f563126]20
[c98e6ee]21 . = 0x70001000;
[f563126]22
[c98e6ee]23 .init ALIGN(0x1000) : SUBALIGN(0x1000) {
24 *(.init);
25 } :text
[f563126]26
[c98e6ee]27 .text : {
[c81e5e0]28 *(.text .text.*);
29 *(.rodata .rodata.*);
[c98e6ee]30 } :text
31
32 .data ALIGN(0x1000) : SUBALIGN(0x1000) {
33 *(.data);
34 } :data
[f563126]35
[c98e6ee]36 .tdata : {
37 _tdata_start = .;
38 *(.tdata);
[f563126]39 *(.gnu.linkonce.tb.*);
[c98e6ee]40 _tdata_end = .;
41 } :data
[f563126]42
[c98e6ee]43 .tbss : {
44 _tbss_start = .;
45 *(.tbss);
46 _tbss_end = .;
47 } :data
[f563126]48
[c98e6ee]49 _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
[f563126]50
[c98e6ee]51 .bss : {
[f563126]52 *(COMMON);
53 *(.bss);
[c98e6ee]54 } :data
55
[1e00216]56#ifdef CONFIG_LINE_DEBUG
57 .comment 0 : { *(.comment); } :debug
58 .debug_abbrev 0 : { *(.debug_abbrev); } :debug
59 .debug_aranges 0 : { *(.debug_aranges); } :debug
60 .debug_info 0 : { *(.debug_info); } :debug
61 .debug_line 0 : { *(.debug_line); } :debug
62 .debug_loc 0 : { *(.debug_loc); } :debug
63 .debug_pubnames 0 : { *(.debug_pubnames); } :debug
64 .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug
65 .debug_ranges 0 : { *(.debug_ranges); } :debug
66 .debug_str 0 : { *(.debug_str); } :debug
67#endif
68
[c98e6ee]69 /DISCARD/ : {
70 *(*);
71 }
72}
Note: See TracBrowser for help on using the repository browser.