OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [libgloss/] [i386/] [cygmon.ld] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 56 joel
STARTUP(cygmon-crt0.o)
2
ENTRY(_start)
3
GROUP(-lcygmon -lc -lcygmon -lgcc)
4
SEARCH_DIR(.)
5
__DYNAMIC  =  0;
6
 
7
/*
8
 * Allocate the stack to be at the top of memory, since the stack
9
 * grows down
10
 */
11
PROVIDE (__stack = 0x500000);
12
 
13
/*
14
 * Initalize some symbols to be zero so we can reference them in the
15
 * crt0 without core dumping. These functions are all optional, but
16
 * we do this so we can have our crt0 always use them if they exist.
17
 * This is so BSPs work better when using the crt0 installed with gcc.
18
 * We have to initalize them twice, so we multiple object file
19
 * formats, as some prepend an underscore.
20
 */
21
PROVIDE (hardware_init_hook = 0);
22
PROVIDE (software_init_hook = 0);
23
PROVIDE (__mem_start = 0x100000);
24
PROVIDE (___mem_start = 0x100000);
25
SECTIONS
26
{
27
  . = 0x100000;
28
  .text : {
29
     _ftext = . ;
30
    *(.init)
31
     eprol  =  .;
32
    *(.text)
33
    PROVIDE (__runtime_reloc_start = .);
34
    *(.rel.sdata)
35
    PROVIDE (__runtime_reloc_stop = .);
36
    *(.fini)
37
     __CTOR_LIST__ = .;
38
    CONSTRUCTORS
39
    LONG(-1)
40
    *(.ctors)
41
    LONG(0)
42
    __CTOR_END__ = .;
43
    __DTOR_LIST__ = .;
44
    LONG(-1)
45
    *(.dtors)
46
     LONG(0)
47
    __DTOR_END__ = .;
48
     etext  =  .;
49
     _etext  =  .;
50
  }
51
  . = .;
52
  .rdata : {
53
    *(.rdata)
54
  }
55
   _fdata = ALIGN(16);
56
  .data : {
57
    *(.data)
58
  }
59
  . = ALIGN(8);
60
  _gp = . + 0x8000;
61
  __global = . + 0x8000;
62
  .lit8 : {
63
    *(.lit8)
64
  }
65
  .lit4 : {
66
    *(.lit4)
67
  }
68
  .sdata : {
69
    *(.sdata)
70
  }
71
  . = ALIGN(4);
72
   edata  =  .;
73
   _edata  =  .;
74
   fbss = .;
75
   _fbss = .;
76
  .sbss : {
77
    *(.sbss)
78
    *(.scommon)
79
  }
80
  .bss : {
81
    __bss_start = . ;
82
    *(.bss)
83
    *(COMMON)
84
    __bss_end = . ;
85
  }
86
   end = .;
87
   _end = .;
88
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.