diff options
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/Makefile.in | 2 | ||||
-rw-r--r-- | ld/scripttempl/m88kbcs.sc | 41 |
3 files changed, 47 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 20b35c6..a019e84 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +Thu Jul 15 10:55:59 1993 Ian Lance Taylor (ian@cygnus.com) + + * Makefile.in (em_m88kbcs.c): Correct dependency. + (scripttempl/m88kbcs.sc): It's ARCH, not arch. + Wed Jul 14 21:42:53 1993 David J. Mackenzie (djm@thepub.cygnus.com) * ldfile.c (ldlang_open_file, ldfile_open_command_file), diff --git a/ld/Makefile.in b/ld/Makefile.in index 68a3270..815e279 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -252,7 +252,7 @@ em_a29k.c: $(srcdir)/emulparams/a29k.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS} ${GENSCRIPTS} a29k.sh em_m88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \ - $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS} + $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS} ${GENSCRIPTS} m88kbcs.sh em_h8300.c: $(srcdir)/emulparams/h8300.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS} diff --git a/ld/scripttempl/m88kbcs.sc b/ld/scripttempl/m88kbcs.sc new file mode 100644 index 0000000..928d640 --- /dev/null +++ b/ld/scripttempl/m88kbcs.sc @@ -0,0 +1,41 @@ +cat <<EOF +TARGET(m88kbcs) +OUTPUT_FORMAT(m88kbcs) +OUTPUT_ARCH(${ARCH}) +ENTRY(__start) +${RELOCATING+${LIB_SEARCH_DIRS}} + +SECTIONS +{ + .text ${RELOCATING+ 0x10000 + SIZEOF_HEADERS} : + { + CREATE_OBJECT_SYMBOLS + ${RELOCATING+ __.text.start = .}; + ${RELOCATING+ __.init.start = .}; + ${RELOCATING+ LONG(0xf400c001)} + ${RELOCATING+ __.init.end = .}; + *(.text) + ${RELOCATING+ __.tdesc_start = .}; + ${RELOCATING+ *(.tdesc)} + ${RELOCATING+ __.text_end = .} ; + ${RELOCATING+ __.initp.start = .}; + ${RELOCATING+ __.initp.end =.}; + + ${RELOCATING+_etext =.}; + } + .data ${RELOCATING+ SIZEOF(.text) + ADDR(.text) + 0x400000} : + { + *(.data) + ${CONSTRUCTING+CONSTRUCTORS} + *(.comment) + ${RELOCATING+_edata = .}; + } + .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} : + { + *(.bss) + *(COMMON) + ${RELOCATING+ _end = .}; + ${RELOCATING+ __end = .}; + } +} +EOF |