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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [mips64/] [ld.script.elf64] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
OUTPUT_ARCH(mips)
2
ENTRY(kernel_entry)
3
SECTIONS
4
{
5
  /* Read-only sections, merged into text segment: */
6
  /* . = 0xc000000000000000; */
7
 
8
  /* This is the value for an Origin kernel, taken from an IRIX kernel.  */
9
  /* . = 0xc00000000001c000; */
10
 
11
  /* Set the vaddr for the text segment to a value
12
        >= 0xa800 0000 0001 9000 if no symmon is going to configured
13
        >= 0xa800 0000 0030 0000 otherwise  */
14
 
15
  /* . = 0xa800000000300000; */
16
  /* . = 0xa800000000300000; */
17
  . = 0xffffffff80300000;
18
  .text : {
19
    _ftext = .;
20
    *(.text)
21
    *(.rodata)
22
    *(.rodata.*)
23
    *(.rodata1)
24
    /* .gnu.warning sections are handled specially by elf32.em.  */
25
    *(.gnu.warning)
26
  } = 0
27
  .kstrtab : { *(.kstrtab) }
28
 
29
  . = ALIGN(16);                /* Exception table */
30
  __start___ex_table = .;
31
  __ex_table : { *(__ex_table) }
32
  __stop___ex_table = .;
33
 
34
  __start___dbe_table = .;      /* Exception table for data bus errors */
35
  __dbe_table : { *(__dbe_table) }
36
  __stop___dbe_table = .;
37
 
38
  __start___ksymtab = .;        /* Kernel symbol table */
39
  __ksymtab : { *(__ksymtab) }
40
  __stop___ksymtab = .;
41
 
42
  _etext = .;
43
 
44
  . = ALIGN(16384);
45
  .data.init_task : { *(.data.init_task) }
46
 
47
  /* Startup code */
48
  . = ALIGN(4096);
49
  __init_begin = .;
50
  .text.init : { *(.text.init) }
51
  .data.init : { *(.data.init) }
52
  . = ALIGN(16);
53
  __setup_start = .;
54
  .setup.init : { *(.setup.init) }
55
  __setup_end = .;
56
  __initcall_start = .;
57
  .initcall.init : { *(.initcall.init) }
58
  __initcall_end = .;
59
  . = ALIGN(4096);      /* Align double page for init_task_union */
60
  __init_end = .;
61
 
62
  . = ALIGN(32);
63
  .data.cacheline_aligned : { *(.data.cacheline_aligned) }
64
 
65
  .fini      : { *(.fini)    } =0
66
  .reginfo : { *(.reginfo) }
67
  /* Adjust the address for the data segment.  We want to adjust up to
68
     the same address within the page on the next page up.  It would
69
     be more correct to do this:
70
       . = .;
71
     The current expression does not correctly handle the case of a
72
     text segment ending precisely at the end of a page; it causes the
73
     data segment to skip a page.  The above expression does not have
74
     this problem, but it will currently (2/95) cause BFD to allocate
75
     a single segment, combining both text and data, for this case.
76
     This will prevent the text segment from being shared among
77
     multiple executions of the program; I think that is more
78
     important than losing a page of the virtual address space (note
79
     that no actual memory is lost; the page which is skipped can not
80
     be referenced).  */
81
  . = .;
82
  .data    :
83
  {
84
    _fdata = . ;
85
    *(.data)
86
 
87
    /* Align the initial ramdisk image (INITRD) on page boundaries. */
88
    . = ALIGN(4096);
89
    __rd_start = .;
90
    *(.initrd)
91
    . = ALIGN(4096);
92
    __rd_end = .;
93
 
94
    CONSTRUCTORS
95
  }
96
  .data1   : { *(.data1) }
97
  .lit8 : { *(.lit8) }
98
  .lit4 : { *(.lit4) }
99
  .ctors         : { *(.ctors)   }
100
  .dtors         : { *(.dtors)   }
101
  .got           : { *(.got.plt) *(.got) }
102
  .dynamic       : { *(.dynamic) }
103
  /* We want the small data sections together, so single-instruction offsets
104
     can access them all, and initialized data all before uninitialized, so
105
     we can shorten the on-disk segment size.  */
106
  .sdata     : { *(.sdata) }
107
  _edata  =  .;
108
 
109
  .sbss      : { *(.sbss) *(.scommon) }
110
  .bss       :
111
  {
112
   *(.dynbss)
113
   *(.bss)
114
   *(COMMON)
115
  _end = . ;
116
  }
117
 
118
  /* Sections to be discarded */
119
  /DISCARD/ :
120
  {
121
        *(.text.exit)
122
        *(.data.exit)
123
        *(.exitcall.exit)
124
  }
125
 
126
  /* These are needed for ELF backends which have not yet been
127
     converted to the new style linker.  */
128
  .stab 0 : { *(.stab) }
129
  .stabstr 0 : { *(.stabstr) }
130
  /* DWARF debug sections.
131
     Symbols in the .debug DWARF section are relative to the beginning of the
132
     section so we begin .debug at 0.  It's not clear yet what needs to happen
133
     for the others.   */
134
  .debug          0 : { *(.debug) }
135
  .debug_srcinfo  0 : { *(.debug_srcinfo) }
136
  .debug_aranges  0 : { *(.debug_aranges) }
137
  .debug_pubnames 0 : { *(.debug_pubnames) }
138
  .debug_sfnames  0 : { *(.debug_sfnames) }
139
  .line           0 : { *(.line) }
140
  /* These must appear regardless of  .  */
141
  .gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
142
  .gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
143
}

powered by: WebSVN 2.1.0

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