* mips/array.ld, mips/cfe.ld, mips/dve.ld, mips/idt32.ld,

* mips/idt64.ld, mips/idtecoff.ld, mips/idt.ld,
	* mips/jmr3904app-java.ld, mips/jmr3904app.ld,
	* mips/jmr3904dram-java.ld, mips/jmr3904dram.ld, mips/lsi.ld,
	* mips/nullmon.ld, mips/pmon.ld: Keep .init and .fini.
This commit is contained in:
Richard Sandiford 2005-04-12 08:06:40 +00:00
parent e8b0558a10
commit 576d455f5f
15 changed files with 36 additions and 28 deletions

View File

@ -1,3 +1,11 @@
2005-04-12 Richard Sandiford <rsandifo@redhat.com>
* mips/array.ld, mips/cfe.ld, mips/dve.ld, mips/idt32.ld,
* mips/idt64.ld, mips/idtecoff.ld, mips/idt.ld,
* mips/jmr3904app-java.ld, mips/jmr3904app.ld,
* mips/jmr3904dram-java.ld, mips/jmr3904dram.ld, mips/lsi.ld,
* mips/nullmon.ld, mips/pmon.ld: Keep .init and .fini.
2005-02-08 Antony King <antony.king@st.com> 2005-02-08 Antony King <antony.king@st.com>
* arm/syscalls.c: Change CHECK_INIT to pass reentrant struct * arm/syscalls.c: Change CHECK_INIT to pass reentrant struct

View File

@ -84,7 +84,7 @@ SECTIONS
. = 0x80020000; . = 0x80020000;
.text : { .text : {
_ftext = . ; _ftext = . ;
*(.init) KEEP (*(.init))
eprol = .; eprol = .;
*(.text) *(.text)
*(.text.*) *(.text.*)
@ -94,7 +94,7 @@ SECTIONS
PROVIDE (__runtime_reloc_start = .); PROVIDE (__runtime_reloc_start = .);
*(.rel.sdata) *(.rel.sdata)
PROVIDE (__runtime_reloc_stop = .); PROVIDE (__runtime_reloc_stop = .);
*(.fini) KEEP (*(.fini))
etext = .; etext = .;
_etext = .; _etext = .;
} }

View File

@ -41,10 +41,10 @@ SECTIONS
*(.mips16.call.*) *(.mips16.call.*)
} }
.init : { .init : {
*(.init) KEEP (*(.init))
} }
.fini : { .fini : {
*(.fini) KEEP (*(.fini))
} }
.rel.sdata : { .rel.sdata : {
PROVIDE (__runtime_reloc_start = .); PROVIDE (__runtime_reloc_start = .);

View File

@ -33,7 +33,7 @@ SECTIONS
. = 0xA0040000; . = 0xA0040000;
.text : { .text : {
_ftext = . ; _ftext = . ;
*(.init) KEEP (*(.init))
eprol = .; eprol = .;
*(.text) *(.text)
*(.text.*) *(.text.*)
@ -43,7 +43,7 @@ SECTIONS
PROVIDE (__runtime_reloc_start = .); PROVIDE (__runtime_reloc_start = .);
*(.rel.sdata) *(.rel.sdata)
PROVIDE (__runtime_reloc_stop = .); PROVIDE (__runtime_reloc_stop = .);
*(.fini) KEEP (*(.fini))
etext = .; etext = .;
_etext = .; _etext = .;
} }

View File

@ -42,10 +42,10 @@ SECTIONS
*(.mips16.call.*) *(.mips16.call.*)
} }
.init : { .init : {
*(.init) KEEP (*(.init))
} }
.fini : { .fini : {
*(.fini) KEEP (*(.fini))
} }
.rel.sdata : { .rel.sdata : {
PROVIDE (__runtime_reloc_start = .); PROVIDE (__runtime_reloc_start = .);

View File

@ -43,10 +43,10 @@ SECTIONS
*(.mips16.call.*) *(.mips16.call.*)
} }
.init : { .init : {
*(.init) KEEP (*(.init))
} }
.fini : { .fini : {
*(.fini) KEEP (*(.fini))
} }
.rel.sdata : { .rel.sdata : {
PROVIDE (__runtime_reloc_start = .); PROVIDE (__runtime_reloc_start = .);

View File

@ -43,10 +43,10 @@ SECTIONS
*(.mips16.call.*) *(.mips16.call.*)
} }
.init : { .init : {
*(.init) KEEP (*(.init))
} }
.fini : { .fini : {
*(.fini) KEEP (*(.fini))
} }
.rel.sdata : { .rel.sdata : {
PROVIDE (__runtime_reloc_start = .); PROVIDE (__runtime_reloc_start = .);

View File

@ -35,7 +35,7 @@ SECTIONS
. = 0xA0020000; . = 0xA0020000;
.text : { .text : {
_ftext = . ; _ftext = . ;
*(.init) KEEP (*(.init))
eprol = .; eprol = .;
*(.text) *(.text)
*(.text.*) *(.text.*)
@ -45,7 +45,7 @@ SECTIONS
PROVIDE (__runtime_reloc_start = .); PROVIDE (__runtime_reloc_start = .);
*(.rel.sdata) *(.rel.sdata)
PROVIDE (__runtime_reloc_stop = .); PROVIDE (__runtime_reloc_stop = .);
*(.fini) KEEP (*(.fini))
etext = .; etext = .;
_etext = .; _etext = .;
} }

View File

@ -35,7 +35,7 @@ SECTIONS
/* It fits the Cygmon ROMS */ /* It fits the Cygmon ROMS */
.text : { .text : {
_ftext = . ; _ftext = . ;
*(.init) KEEP (*(.init))
eprol = .; eprol = .;
*(.text) *(.text)
*(.text.*) *(.text.*)
@ -45,7 +45,7 @@ SECTIONS
PROVIDE (__runtime_reloc_start = .); PROVIDE (__runtime_reloc_start = .);
*(.rel.sdata) *(.rel.sdata)
PROVIDE (__runtime_reloc_stop = .); PROVIDE (__runtime_reloc_stop = .);
*(.fini) KEEP (*(.fini))
etext = .; etext = .;
_etext = .; _etext = .;
} }

View File

@ -32,7 +32,7 @@ SECTIONS
/* It fits the Cygmon ROMS */ /* It fits the Cygmon ROMS */
.text : { .text : {
_ftext = . ; _ftext = . ;
*(.init) KEEP (*(.init))
eprol = .; eprol = .;
*(.text) *(.text)
*(.text.*) *(.text.*)
@ -42,7 +42,7 @@ SECTIONS
PROVIDE (__runtime_reloc_start = .); PROVIDE (__runtime_reloc_start = .);
*(.rel.sdata) *(.rel.sdata)
PROVIDE (__runtime_reloc_stop = .); PROVIDE (__runtime_reloc_stop = .);
*(.fini) KEEP (*(.fini))
etext = .; etext = .;
_etext = .; _etext = .;
} }

View File

@ -37,7 +37,7 @@ SECTIONS
/* It fits the Cygmon ROMS */ /* It fits the Cygmon ROMS */
.text : { .text : {
_ftext = . ; _ftext = . ;
*(.init) KEEP (*(.init))
eprol = .; eprol = .;
*(.text) *(.text)
*(.text.*) *(.text.*)
@ -47,7 +47,7 @@ SECTIONS
PROVIDE (__runtime_reloc_start = .); PROVIDE (__runtime_reloc_start = .);
*(.rel.sdata) *(.rel.sdata)
PROVIDE (__runtime_reloc_stop = .); PROVIDE (__runtime_reloc_stop = .);
*(.fini) KEEP (*(.fini))
etext = .; etext = .;
_etext = .; _etext = .;
} }

View File

@ -34,7 +34,7 @@ SECTIONS
/* It fits the Cygmon ROMS */ /* It fits the Cygmon ROMS */
.text : { .text : {
_ftext = . ; _ftext = . ;
*(.init) KEEP (*(.init))
eprol = .; eprol = .;
*(.text) *(.text)
*(.text.*) *(.text.*)
@ -44,7 +44,7 @@ SECTIONS
PROVIDE (__runtime_reloc_start = .); PROVIDE (__runtime_reloc_start = .);
*(.rel.sdata) *(.rel.sdata)
PROVIDE (__runtime_reloc_stop = .); PROVIDE (__runtime_reloc_stop = .);
*(.fini) KEEP (*(.fini))
etext = .; etext = .;
_etext = .; _etext = .;
} }

View File

@ -34,7 +34,7 @@ SECTIONS
. = 0xA0020000; . = 0xA0020000;
.text : { .text : {
_ftext = . ; _ftext = . ;
*(.init) KEEP (*(.init))
eprol = .; eprol = .;
*(.text) *(.text)
*(.text.*) *(.text.*)
@ -42,7 +42,7 @@ SECTIONS
PROVIDE (__runtime_reloc_start = .); PROVIDE (__runtime_reloc_start = .);
*(.rel.sdata) *(.rel.sdata)
PROVIDE (__runtime_reloc_stop = .); PROVIDE (__runtime_reloc_stop = .);
*(.fini) KEEP (*(.fini))
etext = .; etext = .;
_etext = .; _etext = .;
} }

View File

@ -34,7 +34,7 @@ SECTIONS
. = 0xA0020000; . = 0xA0020000;
.text : { .text : {
_ftext = . ; _ftext = . ;
*(.init) KEEP (*(.init))
eprol = .; eprol = .;
*(.text) *(.text)
*(.text.*) *(.text.*)
@ -44,7 +44,7 @@ SECTIONS
PROVIDE (__runtime_reloc_start = .); PROVIDE (__runtime_reloc_start = .);
*(.rel.sdata) *(.rel.sdata)
PROVIDE (__runtime_reloc_stop = .); PROVIDE (__runtime_reloc_stop = .);
*(.fini) KEEP (*(.fini))
etext = .; etext = .;
_etext = .; _etext = .;
} }

View File

@ -34,7 +34,7 @@ SECTIONS
. = 0xA0020000; . = 0xA0020000;
.text : { .text : {
_ftext = . ; _ftext = . ;
*(.init) KEEP (*(.init))
eprol = .; eprol = .;
*(.text) *(.text)
*(.text.*) *(.text.*)
@ -44,7 +44,7 @@ SECTIONS
PROVIDE (__runtime_reloc_start = .); PROVIDE (__runtime_reloc_start = .);
*(.rel.sdata) *(.rel.sdata)
PROVIDE (__runtime_reloc_stop = .); PROVIDE (__runtime_reloc_stop = .);
*(.fini) KEEP (*(.fini))
etext = .; etext = .;
_etext = .; _etext = .;
} }