aboutsummaryrefslogtreecommitdiff
path: root/libgloss/mips
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2001-08-31 19:22:51 +0000
committerEric Christopher <echristo@gmail.com>2001-08-31 19:22:51 +0000
commitd9204f54e12d5187db4b53cb9a9d5b3da49d85c5 (patch)
treeebcc041af3b6fb304774eea957bdcabbef1f6d90 /libgloss/mips
parent5ac73dfeadf24d60cb3a3cffc25a72c6b23bdee4 (diff)
downloadnewlib-d9204f54e12d5187db4b53cb9a9d5b3da49d85c5.zip
newlib-d9204f54e12d5187db4b53cb9a9d5b3da49d85c5.tar.gz
newlib-d9204f54e12d5187db4b53cb9a9d5b3da49d85c5.tar.bz2
2001-08-30 Richard Henderson <rth@redhat.com>
Eric Christopher <echristo@redhat.com> * mips/idt.ld: Rewrite for .init/.fini sections.
Diffstat (limited to 'libgloss/mips')
-rw-r--r--libgloss/mips/idt.ld24
1 files changed, 15 insertions, 9 deletions
diff --git a/libgloss/mips/idt.ld b/libgloss/mips/idt.ld
index cba8b7b..5dd26fa 100644
--- a/libgloss/mips/idt.ld
+++ b/libgloss/mips/idt.ld
@@ -30,21 +30,27 @@ SECTIONS
{
. = 0xA0020000;
.text : {
- _ftext = . ;
- *(.init)
- eprol = .;
+ _ftext = . ;
+ PROVIDE (eprol = .);
*(.text)
*(.text.*)
*(.gnu.linkonce.t*)
*(.mips16.fn.*)
*(.mips16.call.*)
+ }
+ .init : {
+ *(.init)
+ }
+ .fini : {
+ *(.fini)
+ }
+ .rel.sdata : {
PROVIDE (__runtime_reloc_start = .);
*(.rel.sdata)
PROVIDE (__runtime_reloc_stop = .);
- *(.fini)
- etext = .;
- _etext = .;
}
+ PROVIDE (etext = .);
+ _etext = .;
.ctors :
{
@@ -106,7 +112,7 @@ SECTIONS
*(.gnu.linkonce.s*)
}
. = ALIGN(4);
- edata = .;
+ PROVIDE (edata = .);
_edata = .;
_fbss = .;
.sbss : {
@@ -119,8 +125,8 @@ SECTIONS
*(COMMON)
}
- end = .;
- _end = .;
+ PROVIDE (end = .);
+ _end = .;
/* DWARF debug sections.
Symbols in the DWARF debugging sections are relative to