aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) :