Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2004-03-04 03:35:03 +0300
committerJeff Johnston <jjohnstn@redhat.com>2004-03-04 03:35:03 +0300
commit13a47bd66a97e146afef8b6f92bbbefbbf956a1b (patch)
treef429a981b00040535be11e6c913c11d770b1c918 /libgloss/m68hc11/sim-valid-m68hc11.ld
parente299c7addc3ec7f20162a54740dc06cae2a71389 (diff)
2004-03-03 Stephane Carrez <stcarrez@nerim.fr>
* m68hc11/sci-inout.S: Supports -mlong-calls. * m68hc11/sim-valid-m68hc11.ld (.tramp): New section for trampolines. (.text): Mark the .installN and .finiN section with KEEP. (.vectors): Likewise for .vectors. (.gcc_except_table): New section. * m68hc11/sim-valid-m68hc12.ld (.tramp): New section for trampolines. (.text): Mark the .installN and .finiN section with KEEP. (.vectors): Likewise for .vectors. (.gcc_except_table): New section.
Diffstat (limited to 'libgloss/m68hc11/sim-valid-m68hc11.ld')
-rw-r--r--libgloss/m68hc11/sim-valid-m68hc11.ld48
1 files changed, 23 insertions, 25 deletions
diff --git a/libgloss/m68hc11/sim-valid-m68hc11.ld b/libgloss/m68hc11/sim-valid-m68hc11.ld
index 86b336eca..904b8d649 100644
--- a/libgloss/m68hc11/sim-valid-m68hc11.ld
+++ b/libgloss/m68hc11/sim-valid-m68hc11.ld
@@ -146,15 +146,21 @@ SECTIONS
{
*(.init)
} =0
+ /* Put trampolines at beginning of text at 0x4400 so that they
+ are not in memory bank window. */
+ .tramp :
+ {
+ *(.tramp)
+ } > text
.text :
{
/* Put startup code at beginning so that _start keeps same address. */
/* Startup code. */
- *(.install0) /* Section should setup the stack pointer. */
- *(.install1) /* Place holder for applications. */
- *(.install2) /* Optional installation of data sections in RAM. */
- *(.install3) /* Place holder for applications. */
- *(.install4) /* Section that calls the main. */
+ KEEP (*(.install0)) /* Section should setup the stack pointer. */
+ KEEP (*(.install1)) /* Place holder for applications. */
+ KEEP (*(.install2)) /* Optional installation of data sections in RAM. */
+ KEEP (*(.install3)) /* Place holder for applications. */
+ KEEP (*(.install4)) /* Section that calls the main. */
*(.init)
*(.text)
*(.text.*)
@@ -162,11 +168,11 @@ SECTIONS
*(.gnu.warning)
*(.gnu.linkonce.t.*)
/* Finish code. */
- *(.fini0) /* Beginning of finish code (_exit symbol). */
- *(.fini1) /* Place holder for applications. */
- *(.fini2) /* C++ destructors. */
- *(.fini3) /* Place holder for applications. */
- *(.fini4) /* Runtime exit. */
+ KEEP (*(.fini0)) /* Beginning of finish code (_exit symbol). */
+ KEEP (*(.fini1)) /* Place holder for applications. */
+ KEEP (*(.fini2)) /* C++ destructors. */
+ KEEP (*(.fini3)) /* Place holder for applications. */
+ KEEP (*(.fini4)) /* Runtime exit. */
_etext = .;
PROVIDE (etext = .);
} > text
@@ -174,6 +180,10 @@ SECTIONS
{
*(.eh_frame)
} > text
+ .gcc_except_table :
+ {
+ *(.gcc_except_table)
+ } > text
.rodata :
{
*(.rodata)
@@ -188,25 +198,13 @@ SECTIONS
.ctors :
{
PROVIDE (__CTOR_LIST__ = .);
- *(.ctors)
- /* We don't want to include the .ctor section from
- from the crtend.o file until after the sorted ctors.
- The .ctor section from the crtend file contains the
- end of ctors marker and it must be last
- KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
- KEEP (*(SORT(.ctors.*)))
- KEEP (*(.ctors)) */
+ KEEP (*(.ctors))
PROVIDE(__CTOR_END__ = .);
} > text
.dtors :
{
PROVIDE(__DTOR_LIST__ = .);
- *(.dtors)
- /*
- KEEP (*crtbegin.o(.dtors))
- KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
- KEEP (*(SORT(.dtors.*)))
- KEEP (*(.dtors)) */
+ KEEP (*(.dtors))
PROVIDE(__DTOR_END__ = .);
} > text
/* Start of the data section image in ROM. */
@@ -274,7 +272,7 @@ SECTIONS
PROVIDE (_vectors_addr = DEFINED (vectors_addr) ? vectors_addr : 0xffc0);
.vectors DEFINED (vectors_addr) ? vectors_addr : 0xffc0 :
{
- *(.vectors)
+ KEEP (*(.vectors))
}
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }