]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/scripttempl/z80.sc
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / ld / scripttempl / z80.sc
index 8c004da83c57fa80f137914a8bcbfbb1b85d06d8..f9240c4798ab7691e4778ce18e6474a67a78bec1 100644 (file)
@@ -1,20 +1,38 @@
-if [ x${LD_FLAG} = x ]
-then
-cat << EOF
-/* Create a cp/m executable; load and execute at 0x100.  */
-OUTPUT_FORMAT("binary")
-. = 0x100;
-__Ltext = .;
-ENTRY (__Ltext)
-EOF
-else 
-    echo "OUTPUT_FORMAT(\"${OUTPUT_FORMAT}\")"
+# Copyright (C) 2014-2021 Free Software Foundation, Inc.
+#
+# Copying and distribution of this file, with or without modification,
+# are permitted in any medium without royalty provided the copyright
+# notice and this notice are preserved.
+
+if test "${OUTPUT_FORMAT}" = "elf32-z80"; then
+  NO_REL_RELOCS=1
+  NO_RELA_RELOCS=1
+  NO_SMALL_DATA=1
+  EMBEDDED=1
+  ALIGNMENT=1
+  . $srcdir/scripttempl/elf.sc
+  return 0
 fi
-cat <<EOF
-OUTPUT_ARCH("${OUTPUT_ARCH}")
+
+cat << EOF
+/* Copyright (C) 2014-2021 Free Software Foundation, Inc.
+
+   Copying and distribution of this script, with or without modification,
+   are permitted in any medium without royalty provided the copyright
+   notice and this notice are preserved.  */
+
+OUTPUT_FORMAT("${OUTPUT_FORMAT}")
+OUTPUT_ARCH("${ARCH}")
 SECTIONS
 {
+.isr : {
+       ${RELOCATING+ __Labs = .;}
+       *(.isr)
+       *(isr)
+       ${RELOCATING+ __Habs = .;}
+       }
 .text :        {
+       ${RELOCATING+ __Ltext = .;}
        *(.text)
        *(text)
        ${RELOCATING+ __Htext = .;}