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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [mips/] [ld.script.in] - Blame information for rev 1275

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

powered by: WebSVN 2.1.0

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