Faraz Shahbazker
add5a9c033
Fix order of eh_frame sections in linker scripts
...
The compiler driver positions the linker script at the end of the linker
command-line, after crtend.o. As a result, any INPUT objects and archive
GROUPs introduced by the linker script are placed after crtend.o and the
end-of-frame marker provided by crtend.o ends up in between .eh_frames
instead of being at the end.
This has always been a problem, but a binutils update to clean-up
redundant NULL markers in .eh_frame exposes it as a execution failure in
exception-handling tests. This patch re-orders .eh_frames in all
MIPS linker scripts so that the one from crtend.o is always placed last.
libgloss/
* mips/array.ld: Re-order to place .eh_frame from crtend.o
after all other .eh_frame sections.
* mips/cfe.ld: Likewise.
* mips/ddb-kseg0.ld: Likewise.
* mips/ddb.ld: Likewise.
* mips/dve.ld: Likewise.
* mips/idt.ld: Likewise.
* mips/idt32.ld: Likewise.
* mips/idt64.ld: Likewise.
* mips/jmr3904app.ld: Likewise.
* mips/lsi.ld: Likewise.
* mips/mti32.ld: Likewise.
* mips/mti64.ld: Likewise.
* mips/mti64_64.ld: Likewise.
* mips/mti64_n32.ld: Likewise.
* mips/nullmon.ld: Likewise.
* mips/pmon.ld: Likewise.
* mips/sde32.ld: Likewise.
* mips/sde64.ld: Likewise.
2020-10-14 10:53:52 -04:00
Jeff Johnston
dd8ed8c6f2
2005-10-03 James E Wilson <wilson@specifix.com>
...
* mips/array.ld, mips/cfe.ld, mips/ddb-kseg0.ld, mips/ddb.ld,
mips/dve.ld, mips/idt.ld, mips/idt32.ld, mips/idt64.ld,
mips/idtecoff.ld, mips/jmr3904app-java.ld, mips/jmr3904app.ld,
jmr3904dram-java.ld, mips/jmr3904dram.ld, mips/lsi.ld, mips/nullmon.ld,
mips/pmon.ld: Add support for .bss.* sections.
2005-10-03 17:29:47 +00:00
Jeff Johnston
3924c5c780
2005-09-23 James E Wilson <wilson@specifix.com>
...
* mips/array.ld, mips/cfe.ld, mips/ddb-kseg0.ld, mips/ddb.ld,
mips/dve.ld, mips/idt.ld, mips/idt32.ld, mips/idt64.ld,
mips/idtecoff.ld, mips/jmr3904app-java.ld, mips/jmr3904app.ld,
jmr3904dram-java.ld, mips/jmr3904dram.ld, mips/lsi.ld, mips/nullmon.ld,
mips/pmon.ld: Change x* to x.* in existing linkonce lines. Add
support for .gnu.linkonce.b.*.
2005-09-23 15:51:10 +00:00
Jeff Johnston
650c30276a
2005-07-18 Richard Sandiford <richard@codesourcery.com>
...
* mips/array.ld (.sdata): Include .gnu.linkonce.s.*, not
.gnu.linkonce.s*.
(.sbss): Include .sbss.* and .gnu.linkonce.sb.*.
* mips/cfe.ld, mips/ddb-kseg0.ld, mips/ddb.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: As for mips/array.ld.
2005-07-18 18:19:40 +00:00
Richard Sandiford
576d455f5f
* 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-04-12 08:06:40 +00:00
Richard Sandiford
8c91dd0a29
* mips/array.ld, mips/cfe.ld, mips/ddb-kseg0.ld, mips/ddb.ld,
...
* mips/dve.ld, mips/idt32.ld, mips/idt64.ld, mips/idt.ld
* mips/jmr3904app.ld, mips/lsi.ld, mips/nullmon.ld, mips/pmon.ld
(.eh_frame_hdr, .eh_frame, .gcc_except_table, .jcr): New sections.
2004-05-05 12:16:31 +00:00
Thomas Fitzsimmons
710c0fc4b7
* mips/cfe.ld (STARTUP): New definition.
...
* mips/ddb-kseg0.ld (STARTUP): Likewise.
* mips/ddb.ld (STARTUP): Likewise.
* mips/dve.ld (STARTUP): Likewise.
* mips/idt.ld (STARTUP): Likewise.
* mips/jmr3904app-java.ld (STARTUP): Likewise.
* mips/jmr3904app.ld (STARTUP): Likewise.
* mips/jmr3904dram-java.ld (STARTUP): Likewise.
* mips/jmr3904dram.ld (STARTUP): Likewise.
* mips/lsi.ld (STARTUP): Likewise.
* mips/nullmon.ld (STARTUP): Likewise.
* mips/pmon.ld (STARTUP): Likewise.
2002-08-01 20:21:23 +00:00
Jeff Johnston
451e452847
2002-07-12 Chris Demetriou <cgd@broadcom.com>
...
* mips/array.ld (hardware_exit_hook, hardware_hazard_hook): New
symbols for optionally-provided functions.
* mips/ddb-kseg0.ld: Likewise.
* mips/ddb.ld: Likewise.
* mips/dve.ld: Likewise.
* mips/idt.ld: Likewise.
* mips/idt32.ld: Likewise.
* mips/idt64.ld: Likewise.
* mips/idtecoff.ld: Likewise.
* mips/jmr3904app-java.ld: Likewise.
* mips/jmr3904app.ld: Likewise.
* mips/jmr3904dram-java.ld: Likewise.
* mips/jmr3904dram.ld: Likewise.
* mips/lsi.ld: Likewise.
* mips/nullmon.ld: Likewise.
* mips/pmon.ld: Likewise.
* mips/crt0.S: Invoke hardware_exit_hook and hardware_hazard_hook
functions if they are provided.
(_exit): Handle __embedded_pic properly.
2002-07-12 15:37:04 +00:00
Ranjith Kumaran
03261851a1
20000317 sourceware import
2000-03-17 22:48:54 +00:00