diff --git a/ld/config/hmake-sun3 b/ld/config/hmake-sun3 index 0dd04b092d1..667c7a9576c 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 46084db58d2..aa89c6a355d 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 21c3155a34e..6a1cbb3b80b 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) :