aboutsummaryrefslogtreecommitdiff
path: root/ld/ldm88k.sc
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1991-09-27 20:09:23 +0000
committerPer Bothner <per@bothner.com>1991-09-27 20:09:23 +0000
commite1e5fbfcbbf5c84d6751318e31101ff382ae284d (patch)
tree463886cee50ba923bffa8c54aa457ebe9e7ce6be /ld/ldm88k.sc
parent9dcb30e3a2fadd0f52bf5c371d122b446aaa0e07 (diff)
downloadgdb-e1e5fbfcbbf5c84d6751318e31101ff382ae284d.zip
gdb-e1e5fbfcbbf5c84d6751318e31101ff382ae284d.tar.gz
gdb-e1e5fbfcbbf5c84d6751318e31101ff382ae284d.tar.bz2
* ldlnk960.c: Use new naming convention for *.x{,u,r} include scripts.
* ldm88k.sc: "Clean up" script, so that ldm88kUr.sc and ldm88kr.sc can be automatically generated. * ldemul.c, configure.in, config.h, Makefile.in: Add support for Sony NewsOS3. * Makefile.in: Re-do the way ldemulation scipts and structures are done. do we only need one or two files for each emulation target (a TARGET.sc and optionally TARGET.c, if ldtemplate isn't suitable). This gets rid of lots of extra source files.
Diffstat (limited to 'ld/ldm88k.sc')
-rwxr-xr-xld/ldm88k.sc12
1 files changed, 9 insertions, 3 deletions
diff --git a/ld/ldm88k.sc b/ld/ldm88k.sc
index c4cb37e..408cfde 100755
--- a/ld/ldm88k.sc
+++ b/ld/ldm88k.sc
@@ -8,12 +8,16 @@ SEARCH_DIR(/usr/local/lib)
SECTIONS
{
.text 0x10000 + SIZEOF_HEADERS :
- {
+ {
+ CREATE_OBJECT_SYMBOLS
+ /* If relocating */
__.text.start = .;
__.init.start = .;
LONG(0xf400c001)
__.init.end = .;
+ /* End if relocating */
*(.text)
+ /* If relocating */
__.tdesc_start = .;
*(.tdesc)
__.text_end = .;
@@ -21,11 +25,13 @@ SECTIONS
__.initp.end =.;
_etext =.;
+ /* End if relocating */
}
.data SIZEOF(.text) + ADDR(.text) + 0x400000:
{
- *(.data)
- _edata = .;
+ *(.data)
+ CONSTRUCTORS;
+ _edata = .;
}
.bss SIZEOF(.data) + ADDR(.data) :
{