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

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

make uspace pass compilation with clang

  • Property mode set to 100644
File size: 869 bytes
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 */
[fcd7053]5STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
[c98e6ee]6ENTRY(__entry)
7
8PHDRS {
9 interp PT_INTERP;
[f563126]10 text PT_LOAD FILEHDR PHDRS FLAGS(5);
[c98e6ee]11 data PT_LOAD FLAGS(6);
12}
13
14SECTIONS {
15 .interp : {
16 *(.interp);
17 } :interp
[f563126]18
[c98e6ee]19 . = 0x70001000;
[f563126]20
[c98e6ee]21 .init ALIGN(0x1000) : SUBALIGN(0x1000) {
22 *(.init);
23 } :text
[f563126]24
[c98e6ee]25 .text : {
26 *(.text);
[f563126]27 *(.rodata*);
[c98e6ee]28 } :text
29
30 .data ALIGN(0x1000) : SUBALIGN(0x1000) {
31 *(.data);
32 } :data
[f563126]33
[c98e6ee]34 .tdata : {
35 _tdata_start = .;
36 *(.tdata);
[f563126]37 *(.gnu.linkonce.tb.*);
[c98e6ee]38 _tdata_end = .;
39 } :data
[f563126]40
[c98e6ee]41 .tbss : {
42 _tbss_start = .;
43 *(.tbss);
44 _tbss_end = .;
45 } :data
[f563126]46
[c98e6ee]47 _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
[f563126]48
[c98e6ee]49 .bss : {
[f563126]50 *(COMMON);
51 *(.bss);
[c98e6ee]52 } :data
53
54 . = ALIGN(0x1000);
[f563126]55
[c98e6ee]56 _heap = .;
57
58 /DISCARD/ : {
59 *(*);
60 }
61}
Note: See TracBrowser for help on using the repository browser.