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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [arch/] [mips/] [ld.script] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
OUTPUT_FORMAT("elf32-littlemips")
2
OUTPUT_ARCH(mips)
3
ENTRY(kernel_entry)
4
SECTIONS
5
{
6
  /* Read-only sections, merged into text segment: */
7
  . = 0x80000000;
8
  .rel.text      : { *(.rel.text)       }
9
  .rela.text     : { *(.rela.text)      }
10
  .rel.data      : { *(.rel.data)       }
11
  .rela.data     : { *(.rela.data)      }
12
  .rel.rodata    : { *(.rel.rodata)     }
13
  .rela.rodata   : { *(.rela.rodata)    }
14
  .rel.got       : { *(.rel.got)        }
15
  .rela.got      : { *(.rela.got)       }
16
  .rel.ctors     : { *(.rel.ctors)      }
17
  .rela.ctors    : { *(.rela.ctors)     }
18
  .rel.dtors     : { *(.rel.dtors)      }
19
  .rela.dtors    : { *(.rela.dtors)     }
20
  .rel.init      : { *(.rel.init)       }
21
  .rela.init     : { *(.rela.init)      }
22
  .rel.fini      : { *(.rel.fini)       }
23
  .rela.fini     : { *(.rela.fini)      }
24
  .rel.bss       : { *(.rel.bss)        }
25
  .rela.bss      : { *(.rela.bss)       }
26
  .rel.plt       : { *(.rel.plt)        }
27
  .rela.plt      : { *(.rela.plt)       }
28
  .init          : { *(.init)           } =0
29
  .text      :
30
  {
31
    _ftext = . ;
32
    *(.text)
33
    *(.rodata)
34
    *(.rodata1)
35
    /* .gnu.warning sections are handled specially by elf32.em.  */
36
    *(.gnu.warning)
37
  } =0
38
  _etext = .;
39
  PROVIDE (etext = .);
40
  .fini      : { *(.fini)    } =0
41
  .reginfo : { *(.reginfo) }
42
  /* Adjust the address for the data segment.  We want to adjust up to
43
     the same address within the page on the next page up.  It would
44
     be more correct to do this:
45
       . = .;
46
     The current expression does not correctly handle the case of a
47
     text segment ending precisely at the end of a page; it causes the
48
     data segment to skip a page.  The above expression does not have
49
     this problem, but it will currently (2/95) cause BFD to allocate
50
     a single segment, combining both text and data, for this case.
51
     This will prevent the text segment from being shared among
52
     multiple executions of the program; I think that is more
53
     important than losing a page of the virtual address space (note
54
     that no actual memory is lost; the page which is skipped can not
55
     be referenced).  */
56
  . = .;
57
  .data    :
58
  {
59
    _fdata = . ;
60
    *(.data)
61
    CONSTRUCTORS
62
  }
63
  .data1   : { *(.data1) }
64
  _gp = . + 0x8000;
65
  .lit8 : { *(.lit8) }
66
  .lit4 : { *(.lit4) }
67
  .ctors         : { *(.ctors)   }
68
  .dtors         : { *(.dtors)   }
69
  .got           : { *(.got.plt) *(.got) }
70
  .dynamic       : { *(.dynamic) }
71
  /* We want the small data sections together, so single-instruction offsets
72
     can access them all, and initialized data all before uninitialized, so
73
     we can shorten the on-disk segment size.  */
74
  .sdata     : { *(.sdata) }
75
  _edata  =  .;
76
  PROVIDE (edata = .);
77
  __bss_start = .;
78
  _fbss = .;
79
  .bss       :
80
  {
81
   *(.dynbss)
82
   *(.bss)
83
   *(COMMON)
84
  _end = . ;
85
  PROVIDE (end = .);
86
   *(.sbss)
87
   *(.scommon)
88
  }
89
  /* These are needed for ELF backends which have not yet been
90
     converted to the new style linker.  */
91
  .stab 0 : { *(.stab) }
92
  .stabstr 0 : { *(.stabstr) }
93
  /* DWARF debug sections.
94
     Symbols in the .debug DWARF section are relative to the beginning of the
95
     section so we begin .debug at 0.  It's not clear yet what needs to happen
96
     for the others.   */
97
  .debug          0 : { *(.debug) }
98
  .debug_srcinfo  0 : { *(.debug_srcinfo) }
99
  .debug_aranges  0 : { *(.debug_aranges) }
100
  .debug_pubnames 0 : { *(.debug_pubnames) }
101
  .debug_sfnames  0 : { *(.debug_sfnames) }
102
  .line           0 : { *(.line) }
103
  /* These must appear regardless of  .  */
104
  .gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
105
  .gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
106
}

powered by: WebSVN 2.1.0

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