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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [libgloss/] [mips/] [idt.ld] - Blame information for rev 39

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
/* The following TEXT start address leaves space for the monitor
2
   workspace. i.e. the NEC VR4300 (IDT) first free address is actually
3
   0xa001af20. */
4
 
5
ENTRY(_start)
6
OUTPUT_ARCH("mips:4000")
7
OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
8
GROUP(-lc -lidt -lgcc)
9
SEARCH_DIR(.)
10
__DYNAMIC  =  0;
11
 
12
/*
13
 * Allocate the stack to be at the top of memory, since the stack
14
 * grows down
15
 */
16
PROVIDE (__stack = 0);
17
/* PROVIDE (__global = 0); */
18
 
19
/*
20
 * Initalize some symbols to be zero so we can reference them in the
21
 * crt0 without core dumping. These functions are all optional, but
22
 * we do this so we can have our crt0 always use them if they exist.
23
 * This is so BSPs work better when using the crt0 installed with gcc.
24
 * We have to initalize them twice, so we multiple object file
25
 * formats, as some prepend an underscore.
26
 */
27
PROVIDE (hardware_init_hook = 0);
28
PROVIDE (software_init_hook = 0);
29
 
30
SECTIONS
31
{
32
  . = 0xA0020000;
33
  .text : {
34
     _ftext = . ;
35
    *(.init)
36
     eprol  =  .;
37
    *(.text)
38
    *(.mips16.fn.*)
39
    *(.mips16.call.*)
40
    PROVIDE (__runtime_reloc_start = .);
41
    *(.rel.sdata)
42
    PROVIDE (__runtime_reloc_stop = .);
43
    *(.fini)
44
     etext  =  .;
45
     _etext  =  .;
46
  }
47
  . = .;
48
  .rdata : {
49
    *(.rdata)
50
  }
51
   _fdata = ALIGN(16);
52
  .data : {
53
    *(.data)
54
    CONSTRUCTORS
55
  }
56
  . = ALIGN(8);
57
  _gp = . + 0x8000;
58
  __global = _gp;
59
  .lit8 : {
60
    *(.lit8)
61
  }
62
  .lit4 : {
63
    *(.lit4)
64
  }
65
  .sdata : {
66
    *(.sdata)
67
  }
68
  . = ALIGN(4);
69
   edata  =  .;
70
   _edata  =  .;
71
   _fbss = .;
72
  .sbss : {
73
    *(.sbss)
74
    *(.scommon)
75
  }
76
  .bss : {
77
    _bss_start = . ;
78
    *(.bss)
79
    *(COMMON)
80
  }
81
 
82
   end = .;
83
   _end = .;
84
 
85
  /* DWARF debug sections.
86
     Symbols in the DWARF debugging sections are relative to
87
     the beginning of the section so we begin them at 0.  */
88
 
89
  /* DWARF 1 */
90
  .debug          0 : { *(.debug) }
91
  .line           0 : { *(.line) }
92
 
93
  /* GNU DWARF 1 extensions */
94
  .debug_srcinfo  0 : { *(.debug_srcinfo) }
95
  .debug_sfnames  0 : { *(.debug_sfnames) }
96
 
97
  /* DWARF 1.1 and DWARF 2 */
98
  .debug_aranges  0 : { *(.debug_aranges) }
99
  .debug_pubnames 0 : { *(.debug_pubnames) }
100
 
101
  /* DWARF 2 */
102
  .debug_info     0 : { *(.debug_info) }
103
  .debug_abbrev   0 : { *(.debug_abbrev) }
104
  .debug_line     0 : { *(.debug_line) }
105
  .debug_frame    0 : { *(.debug_frame) }
106
  .debug_str      0 : { *(.debug_str) }
107
  .debug_loc      0 : { *(.debug_loc) }
108
  .debug_macinfo  0 : { *(.debug_macinfo) }
109
 
110
  /* SGI/MIPS DWARF 2 extensions */
111
  .debug_weaknames 0 : { *(.debug_weaknames) }
112
  .debug_funcnames 0 : { *(.debug_funcnames) }
113
  .debug_typenames 0 : { *(.debug_typenames) }
114
  .debug_varnames  0 : { *(.debug_varnames) }
115
}

powered by: WebSVN 2.1.0

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