more changes on original files
[linux-2.4.git] / arch / mips / baget / ld.script.balo
1 OUTPUT_FORMAT("elf32-tradbigmips")
2 OUTPUT_ARCH(mips)
3 ENTRY(balo_entry)
4 SECTIONS
5 {
6   /* Read-only sections, merged into text segment: */
7   . = 0x80400000;
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     *(.rodata.*)
35     *(.rodata1)
36     /* .gnu.warning sections are handled specially by elf32.em.  */
37     *(.gnu.warning)
38
39   _etext = .;
40   PROVIDE (etext = .);
41
42   /* Startup code */
43   . = ALIGN(4096);
44   __init_begin = .;
45   *(.text.init)
46   *(.data.init)
47   . = ALIGN(4096);      /* Align double page for init_task_union */
48   __init_end = .;
49
50    *(.fini)
51   *(.reginfo)
52   /* Adjust the address for the data segment.  We want to adjust up to
53      the same address within the page on the next page up.  It would
54      be more correct to do this:
55        . = .;
56      The current expression does not correctly handle the case of a
57      text segment ending precisely at the end of a page; it causes the
58      data segment to skip a page.  The above expression does not have
59      this problem, but it will currently (2/95) cause BFD to allocate
60      a single segment, combining both text and data, for this case.
61      This will prevent the text segment from being shared among
62      multiple executions of the program; I think that is more
63      important than losing a page of the virtual address space (note
64      that no actual memory is lost; the page which is skipped can not
65      be referenced).  */
66   . = .;
67     _fdata = . ;
68     *(.data)
69     CONSTRUCTORS
70
71   *(.data1)
72   _gp = . + 0x8000;
73   *(.lit8)
74   *(.lit4)
75   *(.ctors)
76   *(.dtors)
77   *(.got.plt) *(.got)
78   *(.dynamic)
79   /* We want the small data sections together, so single-instruction offsets
80      can access them all, and initialized data all before uninitialized, so
81      we can shorten the on-disk segment size.  */
82   *(.sdata)
83   _edata  =  .;
84   PROVIDE (edata = .);
85
86   __bss_start = .;
87   _fbss = .;
88
89    *(.dynbss)
90    *(.bss)
91    *(COMMON)
92   _end = . ;
93   PROVIDE (end = .);
94    *(.sbss)
95    *(.scommon)
96
97   /* These are needed for ELF backends which have not yet been
98      converted to the new style linker.  */
99   *(.stab)
100   *(.stabstr)
101   /* DWARF debug sections.
102      Symbols in the .debug DWARF section are relative to the beginning of the
103      section so we begin .debug at 0.  It's not clear yet what needs to happen
104      for the others.   */
105   *(.debug)
106   *(.debug_srcinfo)
107   *(.debug_aranges)
108   *(.debug_pubnames)
109   *(.debug_sfnames)
110   *(.line)
111   /* These must appear regardless of  .  */
112   *(.gptab.data) *(.gptab.sdata)
113   *(.gptab.bss) *(.gptab.sbss)
114
115   _vmlinux_start = .;
116   *(.vmlinux)
117   _vmlinux_end = .;
118
119   _ramdisk_start = .;
120   *(.ramdisk)
121   _ramdisk_end = .;
122
123 } =0
124
125 }