aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-05-04 00:40:37 +0000
committerSteve Chamberlain <steve@cygnus>1991-05-04 00:40:37 +0000
commitd082a54f59359bac621bdf4cf8c46658ac4938dc (patch)
treef88acbbd6d0838bf3a8010bc1d79f6c404693809 /ld
parentb63165349fd48f5577a3985d7940bcc5377b814d (diff)
downloadgdb-d082a54f59359bac621bdf4cf8c46658ac4938dc.zip
gdb-d082a54f59359bac621bdf4cf8c46658ac4938dc.tar.gz
gdb-d082a54f59359bac621bdf4cf8c46658ac4938dc.tar.bz2
*** empty log message ***
Diffstat (limited to 'ld')
-rwxr-xr-xld/config/hmake-sun34
-rwxr-xr-xld/ld-gld68k-Ur.script9
-rwxr-xr-xld/ld-gld68k.script11
3 files changed, 6 insertions, 18 deletions
diff --git a/ld/config/hmake-sun3 b/ld/config/hmake-sun3
index 0dd04b0..667c7a9 100755
--- a/ld/config/hmake-sun3
+++ b/ld/config/hmake-sun3
@@ -1,2 +1,6 @@
HDEFINES = -DHOST_SYS=SUN3_SYS
YACC = yacc -d
+
+HOSTING_EMU=LDEMULATION=gld68k; export LDEMULATION
+HOSTING_CRT0=/lib/crt0.o
+HOSTING_LIBS=-lc
diff --git a/ld/ld-gld68k-Ur.script b/ld/ld-gld68k-Ur.script
index 46084db..aa89c6a 100755
--- a/ld/ld-gld68k-Ur.script
+++ b/ld/ld-gld68k-Ur.script
@@ -11,15 +11,6 @@ SECTIONS
.data SIZEOF(.text) + ADDR(.text) :
{
*(.data)
- ___DTOR_LIST__ = . ;
- LONG((___CTOR_LIST__ - .)/4 -2)
- *(___DTOR_LIST__)
- LONG(0)
- ___CTOR_LIST__ = . ;
- LONG((___end_list__ - .)/4 -2)
- *(___CTOR_LIST__)
- LONG(0)
- ___end_list__ = . ;
}
.bss SIZEOF(.data) + ADDR(.data) :
{
diff --git a/ld/ld-gld68k.script b/ld/ld-gld68k.script
index 21c3155..6a1cbb3 100755
--- a/ld/ld-gld68k.script
+++ b/ld/ld-gld68k.script
@@ -1,4 +1,5 @@
-OUTPUT_FORMAT(a.out-generic-big)
+OUTPUT_FORMAT("a.out-generic-big")
+OUTPUT_ARCH(m68k)
SEARCH_DIR(/lib)
SEARCH_DIR(/usr/lib)
@@ -15,14 +16,6 @@ SECTIONS
.data ALIGN(0x20000) :
{
*(.data)
- ___DTOR_LIST__ = . ;
- LONG((___CTOR_LIST__ - .)/4 -2)
- *(___DTOR_LIST__)
- LONG(0)
- ___CTOR_LIST__ = . ;
- LONG((_edata - .)/4 -2)
- *(___CTOR_LIST__)
- LONG(0)
_edata = .;
}
.bss SIZEOF(.data) + ADDR(.data) :