diff options
Diffstat (limited to 'ld')
90 files changed, 1203 insertions, 58 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 9242ff7..5f7fed8 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,95 @@ +2014-08-20 Nick Clifton <nickc@redhat.com> + + * scripttempl/DWARF.sc: Add copyright notice. + * scripttempl/aix.sc: Likewise. + * scripttempl/alpha.sc: Likewise. + * scripttempl/alphavms.sc: Likewise. + * scripttempl/aout.sc: Likewise. + * scripttempl/armaout.sc: Likewise. + * scripttempl/armbpabi.sc: Likewise. + * scripttempl/armcoff.sc: Likewise. + * scripttempl/avr.sc: Likewise. + * scripttempl/avrtiny.sc: Likewise. + * scripttempl/crisaout.sc: Likewise. + * scripttempl/delta68.sc: Likewise. + * scripttempl/dlx.sc: Likewise. + * scripttempl/elf.sc: Likewise. + * scripttempl/elf32cr16.sc: Likewise. + * scripttempl/elf32cr16c.sc: Likewise. + * scripttempl/elf32crx.sc: Likewise. + * scripttempl/elf32msp430.sc: Likewise. + * scripttempl/elf32msp430_3.sc: Likewise. + * scripttempl/elf32sh-symbian.sc: Likewise. + * scripttempl/elf32xc16x.sc: Likewise. + * scripttempl/elf32xc16xl.sc: Likewise. + * scripttempl/elf32xc16xs.sc: Likewise. + * scripttempl/elf64hppa.sc: Likewise. + * scripttempl/elf_chaos.sc: Likewise. + * scripttempl/elfd10v.sc: Likewise. + * scripttempl/elfd30v.sc: Likewise. + * scripttempl/elfi370.sc: Likewise. + * scripttempl/elfm68hc11.sc: Likewise. + * scripttempl/elfm68hc12.sc: Likewise. + * scripttempl/elfmicroblaze.sc: Likewise. + * scripttempl/elfxgate.sc: Likewise. + * scripttempl/elfxtensa.sc: Likewise. + * scripttempl/epiphany_4x4.sc: Likewise. + * scripttempl/epocpe.sc: Likewise. + * scripttempl/h8300.sc: Likewise. + * scripttempl/h8300h.sc: Likewise. + * scripttempl/h8300hn.sc: Likewise. + * scripttempl/h8300s.sc: Likewise. + * scripttempl/h8300sn.sc: Likewise. + * scripttempl/h8300sx.sc: Likewise. + * scripttempl/h8300sxn.sc: Likewise. + * scripttempl/h8500.sc: Likewise. + * scripttempl/h8500b.sc: Likewise. + * scripttempl/h8500c.sc: Likewise. + * scripttempl/h8500m.sc: Likewise. + * scripttempl/h8500s.sc: Likewise. + * scripttempl/hppaelf.sc: Likewise. + * scripttempl/i386beos.sc: Likewise. + * scripttempl/i386coff.sc: Likewise. + * scripttempl/i386go32.sc: Likewise. + * scripttempl/i386msdos.sc: Likewise. + * scripttempl/i860coff.sc: Likewise. + * scripttempl/i960.sc: Likewise. + * scripttempl/ia64vms.sc: Likewise. + * scripttempl/ip2k.sc: Likewise. + * scripttempl/iq2000.sc: Likewise. + * scripttempl/m68kaux.sc: Likewise. + * scripttempl/m68kcoff.sc: Likewise. + * scripttempl/m88kbcs.sc: Likewise. + * scripttempl/mcorepe.sc: Likewise. + * scripttempl/mep.sc: Likewise. + * scripttempl/mips.sc: Likewise. + * scripttempl/mipsbsd.sc: Likewise. + * scripttempl/mmo.sc: Likewise. + * scripttempl/moxie.sc: Likewise. + * scripttempl/nds32elf.sc: Likewise. + * scripttempl/nw.sc: Likewise. + * scripttempl/pe.sc: Likewise. + * scripttempl/pep.sc: Likewise. + * scripttempl/pj.sc: Likewise. + * scripttempl/ppcpe.sc: Likewise. + * scripttempl/psos.sc: Likewise. + * scripttempl/riscix.sc: Likewise. + * scripttempl/sh.sc: Likewise. + * scripttempl/sparccoff.sc: Likewise. + * scripttempl/st2000.sc: Likewise. + * scripttempl/tic30aout.sc: Likewise. + * scripttempl/tic30coff.sc: Likewise. + * scripttempl/tic4xcoff.sc: Likewise. + * scripttempl/tic54xcoff.sc: Likewise. + * scripttempl/tic80coff.sc: Likewise. + * scripttempl/v850.sc: Likewise. + * scripttempl/v850_rh850.sc: Likewise. + * scripttempl/vanilla.sc: Likewise. + * scripttempl/w65.sc: Likewise. + * scripttempl/xstormy16.sc: Likewise. + * scripttempl/z80.sc: Likewise. + * scripttempl/z8000.sc: Likewise. + 2014-08-19 Alan Modra <amodra@gmail.com> * configure: Regenerate. diff --git a/ld/scripttempl/DWARF.sc b/ld/scripttempl/DWARF.sc index 89ff919..75120a4 100644 --- a/ld/scripttempl/DWARF.sc +++ b/ld/scripttempl/DWARF.sc @@ -1,3 +1,9 @@ +# Copyright (C) 2014 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. +# cat <<EOF /* DWARF debug sections. Symbols in the DWARF debugging sections are relative to the beginning diff --git a/ld/scripttempl/aix.sc b/ld/scripttempl/aix.sc index adc5de6..96518b6 100644 --- a/ld/scripttempl/aix.sc +++ b/ld/scripttempl/aix.sc @@ -2,8 +2,20 @@ # AIX always uses shared libraries. The section VMA appears to be # unimportant. The native linker aligns the sections on boundaries # specified by the -H option. +# +# Copyright (C) 2014 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. cat <<EOF +/* Copyright (C) 2014 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_ARCH(${ARCH}) ${RELOCATING+${LIB_SEARCH_DIRS}} ${RELOCATING+ENTRY (__start)} diff --git a/ld/scripttempl/alpha.sc b/ld/scripttempl/alpha.sc index 99565b4..fee43d6 100644 --- a/ld/scripttempl/alpha.sc +++ b/ld/scripttempl/alpha.sc @@ -2,6 +2,13 @@ # Ian Lance Taylor <ian@cygnus.com>. # These variables may be overridden by the emulation file. The # defaults are appropriate for an Alpha running OSF/1. +# +# Copyright (C) 2014 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. + test -z "$ENTRY" && ENTRY=__start test -z "$TEXT_START_ADDR" && TEXT_START_ADDR="0x120000000 + SIZEOF_HEADERS" if test "x$LD_FLAG" = "xn" -o "x$LD_FLAG" = "xN"; then @@ -10,6 +17,12 @@ else test -z "$DATA_ADDR" && DATA_ADDR=0x140000000 fi cat <<EOF +/* Copyright (C) 2014 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}") ${LIB_SEARCH_DIRS} diff --git a/ld/scripttempl/alphavms.sc b/ld/scripttempl/alphavms.sc index 0a17711..56b7603 100644 --- a/ld/scripttempl/alphavms.sc +++ b/ld/scripttempl/alphavms.sc @@ -1,9 +1,21 @@ # Linker script for Alpha VMS systems. # Tristan Gingold <gingold@adacore.com>. +# +# Copyright (C) 2014 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. PAGESIZE=0x10000 cat <<EOF +/* Copyright (C) 2014 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}") ${LIB_SEARCH_DIRS} diff --git a/ld/scripttempl/aout.sc b/ld/scripttempl/aout.sc index 80dbb37..d30b71b 100644 --- a/ld/scripttempl/aout.sc +++ b/ld/scripttempl/aout.sc @@ -1,8 +1,20 @@ +# Copyright (C) 2014 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. +# test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT} test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT} test -z "${ALIGNMENT}" && ALIGNMENT="4" cat <<EOF +/* Copyright (C) 2014 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}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}") OUTPUT_ARCH(${ARCH}) diff --git a/ld/scripttempl/armaout.sc b/ld/scripttempl/armaout.sc index 9bae887..13a0022 100644 --- a/ld/scripttempl/armaout.sc +++ b/ld/scripttempl/armaout.sc @@ -1,4 +1,16 @@ +# Copyright (C) 2014 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. +# cat <<EOF +/* Copyright (C) 2014 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}) diff --git a/ld/scripttempl/armbpabi.sc b/ld/scripttempl/armbpabi.sc index a1bbc2b..b910847 100644 --- a/ld/scripttempl/armbpabi.sc +++ b/ld/scripttempl/armbpabi.sc @@ -2,6 +2,12 @@ # OS, where a separate postlinker will operated on the generated # executable or shared object. See elf.sc for configuration variables # that apply; only BPABI-specific variables will be noted here. +# +# Copyright (C) 2014 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. test -z "$ENTRY" && ENTRY=_start test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT} @@ -129,7 +135,7 @@ SHLIB_TEXT_START_ADDR="SEGMENT_START(\"text\", ${SHLIB_TEXT_START_ADDR:-0})" DATA_ADDR="SEGMENT_START(\"data\", ${DATA_ADDR-${DATA_SEGMENT_ALIGN}})" SHLIB_DATA_ADDR="SEGMENT_START(\"data\", ${SHLIB_DATA_ADDR-${DATA_SEGMENT_ALIGN}})" -# if this is for an embedded system, don't add SIZEOF_HEADERS. +# If this is for an embedded system, don't add SIZEOF_HEADERS. if [ -z "$EMBEDDED" ]; then test -z "${TEXT_BASE_ADDRESS}" && TEXT_BASE_ADDRESS="${TEXT_START_ADDR} + SIZEOF_HEADERS" SHLIB_BASE_ADDRESS="${SHLIB_TEXT_START_ADDR} + SIZEOF_HEADERS" @@ -139,6 +145,12 @@ else fi cat <<EOF +/* Copyright (C) 2014 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}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}") OUTPUT_ARCH(${OUTPUT_ARCH}) diff --git a/ld/scripttempl/armcoff.sc b/ld/scripttempl/armcoff.sc index ebc019a..310a968 100644 --- a/ld/scripttempl/armcoff.sc +++ b/ld/scripttempl/armcoff.sc @@ -1,5 +1,12 @@ # Linker script for ARM COFF. # Based on i386coff.sc by Ian Taylor <ian@cygnus.com>. +# +# Copyright (C) 2014 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. + test -z "$ENTRY" && ENTRY=_start if test -z "${DATA_ADDR}"; then if test "$LD_FLAG" = "N" || test "$LD_FLAG" = "n"; then @@ -19,6 +26,12 @@ DTOR='.dtor : { }' cat <<EOF +/* Copyright (C) 2014 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}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}") ${LIB_SEARCH_DIRS} diff --git a/ld/scripttempl/avr.sc b/ld/scripttempl/avr.sc index d356b71..225eda5 100644 --- a/ld/scripttempl/avr.sc +++ b/ld/scripttempl/avr.sc @@ -1,4 +1,16 @@ +# Copyright (C) 2014 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. + cat <<EOF +/* Copyright (C) 2014 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_FORMAT}","${OUTPUT_FORMAT}") OUTPUT_ARCH(${ARCH}) diff --git a/ld/scripttempl/avrtiny.sc b/ld/scripttempl/avrtiny.sc index b3a49d1..ab7294b 100644 --- a/ld/scripttempl/avrtiny.sc +++ b/ld/scripttempl/avrtiny.sc @@ -1,4 +1,16 @@ +# Copyright (C) 2014 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. + cat <<EOF +/* Copyright (C) 2014 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_FORMAT}","${OUTPUT_FORMAT}") OUTPUT_ARCH(${ARCH}) diff --git a/ld/scripttempl/crisaout.sc b/ld/scripttempl/crisaout.sc index c58f56d..e9a9515 100644 --- a/ld/scripttempl/crisaout.sc +++ b/ld/scripttempl/crisaout.sc @@ -1,4 +1,16 @@ +# Copyright (C) 2014 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. + cat <<EOF +/* Copyright (C) 2014 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("a.out-cris") OUTPUT_ARCH(cris) ${RELOCATING+ENTRY (__start)} diff --git a/ld/scripttempl/delta68.sc b/ld/scripttempl/delta68.sc index fb196f3..ea56e0f 100644 --- a/ld/scripttempl/delta68.sc +++ b/ld/scripttempl/delta68.sc @@ -1,4 +1,16 @@ +# Copyright (C) 2014 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. + cat <<EOF +/* Copyright (C) 2014 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}) ${RELOCATING+ENTRY (_start)} diff --git a/ld/scripttempl/dlx.sc b/ld/scripttempl/dlx.sc index b222b33..71d6d5a 100644 --- a/ld/scripttempl/dlx.sc +++ b/ld/scripttempl/dlx.sc @@ -1,4 +1,16 @@ +# Copyright (C) 2014 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. + cat <<EOF +/* Copyright (C) 2014 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}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}") OUTPUT_ARCH(${ARCH}) diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc index 6d0d13d..4368fd9 100644 --- a/ld/scripttempl/elf.sc +++ b/ld/scripttempl/elf.sc @@ -1,3 +1,8 @@ +# Copyright (C) 2014 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. # # Unusual variables checked by this code: # NOP - four byte opcode for no-op (defaults to none) @@ -308,7 +313,7 @@ else SIZEOF_HEADERS_CODE= fi -# if this is for an embedded system, don't add SIZEOF_HEADERS. +# If this is for an embedded system, don't add SIZEOF_HEADERS. if [ -z "$EMBEDDED" ]; then test -z "${TEXT_BASE_ADDRESS}" && TEXT_BASE_ADDRESS="${TEXT_START_ADDR}${SIZEOF_HEADERS_CODE}" else @@ -316,6 +321,12 @@ else fi cat <<EOF +/* Copyright (C) 2014 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}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}") OUTPUT_ARCH(${OUTPUT_ARCH}) diff --git a/ld/scripttempl/elf32cr16.sc b/ld/scripttempl/elf32cr16.sc index 0b0bb9c..9042327 100644 --- a/ld/scripttempl/elf32cr16.sc +++ b/ld/scripttempl/elf32cr16.sc @@ -1,4 +1,10 @@ # Linker Script for National Semiconductor's CR16-ELF32. +# +# Copyright (C) 2014 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. # The next line should be uncommented if it is desired to link # without libstart.o and directly enter main. @@ -8,7 +14,12 @@ test -z "$ENTRY" && ENTRY=_start cat <<EOF -/* Example Linker Script for linking NS CR16 elf32 files. */ +/* Example Linker Script for linking NS CR16 elf32 files. + Copyright (C) 2014 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}) diff --git a/ld/scripttempl/elf32cr16c.sc b/ld/scripttempl/elf32cr16c.sc index 84fc61c..de98287 100644 --- a/ld/scripttempl/elf32cr16c.sc +++ b/ld/scripttempl/elf32cr16c.sc @@ -1,11 +1,24 @@ # Linker Script for National Semiconductor's CR16C-ELF32. +# +# Copyright (C) 2014 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. test -z "$ENTRY" && ENTRY=_start cat <<EOF /* Example Linker Script for linking NS CR16C or CR16CPlus elf32 files, which were compiled with either the near data - model or the default data model. */ + model or the default data model. + + Copyright (C) 2014 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. */ + ${RELOCATING+ENTRY(${ENTRY})} diff --git a/ld/scripttempl/elf32crx.sc b/ld/scripttempl/elf32crx.sc index 02c6fb4..93facc2 100644 --- a/ld/scripttempl/elf32crx.sc +++ b/ld/scripttempl/elf32crx.sc @@ -1,4 +1,10 @@ # Linker Script for National Semiconductor's CRX-ELF32. +# +# Copyright (C) 2014 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. # The next line should be uncommented if it is desired to link # without libstart.o and directly enter main. @@ -8,7 +14,14 @@ test -z "$ENTRY" && ENTRY=_start cat <<EOF -/* Example Linker Script for linking NS CRX elf32 files. */ +/* Example Linker Script for linking NS CRX elf32 files. + + Copyright (C) 2014 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}) diff --git a/ld/scripttempl/elf32msp430.sc b/ld/scripttempl/elf32msp430.sc index 38df7a4..1a3923f 100644 --- a/ld/scripttempl/elf32msp430.sc +++ b/ld/scripttempl/elf32msp430.sc @@ -1,4 +1,8 @@ -#!/bin/sh +# Copyright (C) 2014 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. HEAP_SECTION_MSP430=" " HEAP_MEMORY_MSP430=" " @@ -19,6 +23,12 @@ fi cat <<EOF +/* Copyright (C) 2014 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_FORMAT}","${OUTPUT_FORMAT}") OUTPUT_ARCH(${ARCH}) diff --git a/ld/scripttempl/elf32msp430_3.sc b/ld/scripttempl/elf32msp430_3.sc index 7209f47..ec259c9 100644 --- a/ld/scripttempl/elf32msp430_3.sc +++ b/ld/scripttempl/elf32msp430_3.sc @@ -1,4 +1,16 @@ +# Copyright (C) 2014 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. + cat <<EOF +/* Copyright (C) 2014 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_FORMAT}","${OUTPUT_FORMAT}") OUTPUT_ARCH(${ARCH}) diff --git a/ld/scripttempl/elf32sh-symbian.sc b/ld/scripttempl/elf32sh-symbian.sc index 680028f..8e66e69 100644 --- a/ld/scripttempl/elf32sh-symbian.sc +++ b/ld/scripttempl/elf32sh-symbian.sc @@ -1,3 +1,8 @@ +# Copyright (C) 2014 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. # # Unusual variables checked by this code: # NOP - four byte opcode for no-op (defaults to 0) @@ -141,7 +146,7 @@ STACK=" .stack ${RELOCATING-0}${RELOCATING+${STACK_ADDR}} : *(.stack) } :data" -# if this is for an embedded system, don't add SIZEOF_HEADERS. +# If this is for an embedded system, don't add SIZEOF_HEADERS. if [ -z "$EMBEDDED" ]; then test -z "${TEXT_BASE_ADDRESS}" && TEXT_BASE_ADDRESS="${TEXT_START_ADDR} + SIZEOF_HEADERS" else @@ -149,6 +154,12 @@ else fi cat <<EOF +/* Copyright (C) 2014 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}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}") OUTPUT_ARCH(${OUTPUT_ARCH}) diff --git a/ld/scripttempl/elf32xc16x.sc b/ld/scripttempl/elf32xc16x.sc index cb72508..ba45d49 100644 --- a/ld/scripttempl/elf32xc16x.sc +++ b/ld/scripttempl/elf32xc16x.sc @@ -1,4 +1,16 @@ +# Copyright (C) 2014 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. + cat <<EOF +/* Copyright (C) 2014 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}) ${RELOCATING+ENTRY ("_start")} diff --git a/ld/scripttempl/elf32xc16xl.sc b/ld/scripttempl/elf32xc16xl.sc index 3565ece..ec66ba5 100644 --- a/ld/scripttempl/elf32xc16xl.sc +++ b/ld/scripttempl/elf32xc16xl.sc @@ -1,4 +1,16 @@ +# Copyright (C) 2014 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. + cat <<EOF +/* Copyright (C) 2014 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}) ${RELOCATING+ENTRY ("_start")} diff --git a/ld/scripttempl/elf32xc16xs.sc b/ld/scripttempl/elf32xc16xs.sc index 3565ece..9265364 100644 --- a/ld/scripttempl/elf32xc16xs.sc +++ b/ld/scripttempl/elf32xc16xs.sc @@ -1,4 +1,16 @@ +# Copyright (C) 2014 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. + cat <<EOF +/* Copyright (C) 2014 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}) ${RELOCATING+ENTRY ("_start")} @@ -53,12 +65,9 @@ SECTIONS *(.ldata) } ${RELOCATING+ > ldata} - .vects : { *(.vects) } ${RELOCATING+ > vectarea} - - } EOF diff --git a/ld/scripttempl/elf64hppa.sc b/ld/scripttempl/elf64hppa.sc index d529f8d..59bcb05 100644 --- a/ld/scripttempl/elf64hppa.sc +++ b/ld/scripttempl/elf64hppa.sc @@ -1,3 +1,8 @@ +# Copyright (C) 2014 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. # # Unusual variables checked by this code: # NOP - four byte opcode for no-op (defaults to 0) @@ -259,7 +264,7 @@ STACK=" .stack ${RELOCATING-0}${RELOCATING+${STACK_ADDR}} : TEXT_START_ADDR="SEGMENT_START(\"text-segment\", ${TEXT_START_ADDR})" SHLIB_TEXT_START_ADDR="SEGMENT_START(\"text-segment\", ${SHLIB_TEXT_START_ADDR:-0})" -# if this is for an embedded system, don't add SIZEOF_HEADERS. +# If this is for an embedded system, don't add SIZEOF_HEADERS. if [ -z "$EMBEDDED" ]; then test -z "${TEXT_BASE_ADDRESS}" && TEXT_BASE_ADDRESS="${TEXT_START_ADDR} + SIZEOF_HEADERS" else @@ -267,6 +272,12 @@ else fi cat <<EOF +/* Copyright (C) 2014 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}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}") OUTPUT_ARCH(${OUTPUT_ARCH}) diff --git a/ld/scripttempl/elf_chaos.sc b/ld/scripttempl/elf_chaos.sc index 621352f..2f005a9 100644 --- a/ld/scripttempl/elf_chaos.sc +++ b/ld/scripttempl/elf_chaos.sc @@ -1,3 +1,8 @@ +# Copyright (C) 2014 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. # # Unusual variables checked by this code: # NOP - four byte opcode for no-op (defaults to 0) @@ -148,6 +153,12 @@ STACK=" .stack ${RELOCATING-0}${RELOCATING+${STACK_ADDR}} : test -z "${TEXT_BASE_ADDRESS}" && TEXT_BASE_ADDRESS="${TEXT_START_ADDR}" cat <<EOF +/* Copyright (C) 2014 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}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}") OUTPUT_ARCH(${OUTPUT_ARCH}) diff --git a/ld/scripttempl/elfd10v.sc b/ld/scripttempl/elfd10v.sc index 81143b5..f5b3c51 100644 --- a/ld/scripttempl/elfd10v.sc +++ b/ld/scripttempl/elfd10v.sc @@ -1,3 +1,9 @@ +# Copyright (C) 2014 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. + test -z "$ENTRY" && ENTRY=_start test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT} test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT} @@ -55,6 +61,12 @@ else fi cat <<EOF +/* Copyright (C) 2014 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}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}") OUTPUT_ARCH(${OUTPUT_ARCH}) diff --git a/ld/scripttempl/elfd30v.sc b/ld/scripttempl/elfd30v.sc index 1038290..93ad3a4 100644 --- a/ld/scripttempl/elfd30v.sc +++ b/ld/scripttempl/elfd30v.sc @@ -1,3 +1,8 @@ +# Copyright (C) 2014 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. CTOR=".ctors ${CONSTRUCTING-0} : { @@ -38,6 +43,12 @@ DTOR=" .dtors ${CONSTRUCTING-0} : } ${RELOCATING+ > ${DATA_MEMORY}}" cat <<EOF +/* Copyright (C) 2014 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}) diff --git a/ld/scripttempl/elfi370.sc b/ld/scripttempl/elfi370.sc index 900ee09..b59a881 100644 --- a/ld/scripttempl/elfi370.sc +++ b/ld/scripttempl/elfi370.sc @@ -1,3 +1,8 @@ +# Copyright (C) 2014 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. # # This is just a raw copy of elfppc.sc and has not been otherwise modified # @@ -21,7 +26,7 @@ # # When adding sections, do note that the names of some sections are used # when specifying the start address of the next. -# + test -z "$ENTRY" && ENTRY=_start test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT} test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT} @@ -31,7 +36,14 @@ SBSS2=".sbss2 ${RELOCATING-0} : { *(.sbss2) }" SDATA2=".sdata2 ${RELOCATING-0} : { *(.sdata2) }" INTERP=".interp ${RELOCATING-0} : { *(.interp) }" PLT=".plt ${RELOCATING-0} : { *(.plt) }" + cat <<EOF +/* Copyright (C) 2014 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}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}") OUTPUT_ARCH(${ARCH}) diff --git a/ld/scripttempl/elfm68hc11.sc b/ld/scripttempl/elfm68hc11.sc index e839227..49d7799 100644 --- a/ld/scripttempl/elfm68hc11.sc +++ b/ld/scripttempl/elfm68hc11.sc @@ -1,3 +1,8 @@ +# Copyright (C) 2014 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. # # Unusual variables checked by this code: # NOP - four byte opcode for no-op (defaults to 0) @@ -17,7 +22,7 @@ # # When adding sections, do note that the names of some sections are used # when specifying the start address of the next. -# + test -z "$ENTRY" && ENTRY=_start test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT} test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT} @@ -158,6 +163,12 @@ SOFT_REGS_RELOC=" " cat <<EOF +/* Copyright (C) 2014 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. */ + ${RELOCATING+/* Linker script for 68HC11 executable (PROM). */} ${RELOCATING-/* Linker script for 68HC11 object file (ld -r). */} diff --git a/ld/scripttempl/elfm68hc12.sc b/ld/scripttempl/elfm68hc12.sc index a737481..ae6e680 100644 --- a/ld/scripttempl/elfm68hc12.sc +++ b/ld/scripttempl/elfm68hc12.sc @@ -1,3 +1,8 @@ +# Copyright (C) 2014 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. # # Unusual variables checked by this code: # NOP - four byte opcode for no-op (defaults to 0) @@ -158,6 +163,12 @@ SOFT_REGS_RELOC=" " cat <<EOF +/* Copyright (C) 2014 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. */ + ${RELOCATING+/* Linker script for 68HC12 executable (PROM). */} ${RELOCATING-/* Linker script for 68HC12 object file (ld -r). */} diff --git a/ld/scripttempl/elfmicroblaze.sc b/ld/scripttempl/elfmicroblaze.sc index 8d2e6f2..f8fcc61 100644 --- a/ld/scripttempl/elfmicroblaze.sc +++ b/ld/scripttempl/elfmicroblaze.sc @@ -1,6 +1,14 @@ # Adapted from mips.sc +# +# Copyright (C) 2014 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. +# # These variables may be overridden by the emulation file. The # defaults are appropriate for a DECstation running Ultrix. + test -z "$ENTRY" && ENTRY=_start #test -z "$TEXT_START_ADDR" && TEXT_START_ADDR="0x0" @@ -42,6 +50,12 @@ DTOR=" .dtors ${CONSTRUCTING-0} : }" cat <<EOF +/* Copyright (C) 2014 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}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}") /*${LIB_SEARCH_DIRS}*/ diff --git a/ld/scripttempl/elfxgate.sc b/ld/scripttempl/elfxgate.sc index d61b9dd..78df733 100644 --- a/ld/scripttempl/elfxgate.sc +++ b/ld/scripttempl/elfxgate.sc @@ -1,3 +1,8 @@ +# Copyright (C) 2014 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. # # Unusual variables checked by this code: # NOP - four byte opcode for no-op (defaults to 0) @@ -161,6 +166,12 @@ cat <<EOF ${RELOCATING+/* Linker script for 68HC12 executable (PROM). */} ${RELOCATING-/* Linker script for 68HC12 object file (ld -r). */} +/* Copyright (C) 2014 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}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}") OUTPUT_ARCH(${OUTPUT_ARCH}) diff --git a/ld/scripttempl/elfxtensa.sc b/ld/scripttempl/elfxtensa.sc index b51fe6a..5c577ce 100644 --- a/ld/scripttempl/elfxtensa.sc +++ b/ld/scripttempl/elfxtensa.sc @@ -1,3 +1,8 @@ +# Copyright (C) 2014 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. # # Unusual variables checked by this code: # NOP - four byte opcode for no-op (defaults to 0) @@ -273,7 +278,7 @@ STACK=" .stack ${RELOCATING-0}${RELOCATING+${STACK_ADDR}} : *(.stack) }" -# if this is for an embedded system, don't add SIZEOF_HEADERS. +# If this is for an embedded system, don't add SIZEOF_HEADERS. if [ -z "$EMBEDDED" ]; then test -z "${TEXT_BASE_ADDRESS}" && TEXT_BASE_ADDRESS="${TEXT_START_ADDR} + SIZEOF_HEADERS" else @@ -281,6 +286,12 @@ else fi cat <<EOF +/* Copyright (C) 2014 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. */ + ${RELOCATING+ENTRY(${ENTRY})} ${RELOCATING+${LIB_SEARCH_DIRS}} diff --git a/ld/scripttempl/epiphany_4x4.sc b/ld/scripttempl/epiphany_4x4.sc index b577ef8..fcfa993 100644 --- a/ld/scripttempl/epiphany_4x4.sc +++ b/ld/scripttempl/epiphany_4x4.sc @@ -1,3 +1,8 @@ +# Copyright (C) 2014 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. # # Unusual variables checked by this code: # NOP - four byte opcode for no-op (defaults to 0) @@ -243,7 +248,7 @@ STACK=" .stack ${RELOCATING-0}${RELOCATING+${STACK_ADDR}} : *(.stack) }" -# if this is for an embedded system, don't add SIZEOF_HEADERS. +# If this is for an embedded system, don't add SIZEOF_HEADERS. if [ -z "$EMBEDDED" ]; then test -z "${TEXT_BASE_ADDRESS}" && TEXT_BASE_ADDRESS="${TEXT_START_ADDR} + SIZEOF_HEADERS" else @@ -251,6 +256,11 @@ else fi cat <<EOF +/* Copyright (C) 2014 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}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}") diff --git a/ld/scripttempl/epocpe.sc b/ld/scripttempl/epocpe.sc index 441d31e..6bf8381 100644 --- a/ld/scripttempl/epocpe.sc +++ b/ld/scripttempl/epocpe.sc @@ -1,4 +1,10 @@ # Linker script for PE. +# +# Copyright (C) 2014 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 -z "${RELOCATEABLE_OUTPUT_FORMAT}"; then RELOCATEABLE_OUTPUT_FORMAT=${OUTPUT_FORMAT} @@ -36,6 +42,12 @@ else fi cat <<EOF +/* Copyright (C) 2014 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. */ + ${RELOCATING+OUTPUT_FORMAT(${OUTPUT_FORMAT})} ${RELOCATING-OUTPUT_FORMAT(${RELOCATEABLE_OUTPUT_FORMAT})} diff --git a/ld/scripttempl/h8300.sc b/ld/scripttempl/h8300.sc index f142f4b..93de9d7 100644 --- a/ld/scripttempl/h8300.sc +++ b/ld/scripttempl/h8300.sc @@ -1,3 +1,9 @@ +# Copyright (C) 2014 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. + TORS=".tors : { ___ctors = . ; @@ -9,6 +15,12 @@ TORS=".tors : } > ram" cat <<EOF +/* Copyright (C) 2014 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}) ${RELOCATING+ENTRY ("_start")} diff --git a/ld/scripttempl/h8300h.sc b/ld/scripttempl/h8300h.sc index 9a41537..054e567 100644 --- a/ld/scripttempl/h8300h.sc +++ b/ld/scripttempl/h8300h.sc @@ -1,3 +1,9 @@ +# Copyright (C) 2014 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. + TORS=".tors : { ___ctors = . ; @@ -9,6 +15,12 @@ TORS=".tors : } > ram" cat <<EOF +/* Copyright (C) 2014 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(h8300h) ${RELOCATING+ENTRY ("_start")} diff --git a/ld/scripttempl/h8300hn.sc b/ld/scripttempl/h8300hn.sc index 5cdfc5a..aa84ccf 100644 --- a/ld/scripttempl/h8300hn.sc +++ b/ld/scripttempl/h8300hn.sc @@ -1,3 +1,9 @@ +# Copyright (C) 2014 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. + TORS=".tors : { ___ctors = . ; @@ -9,6 +15,12 @@ TORS=".tors : } > ram" cat <<EOF +/* Copyright (C) 2014 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(h8300hn) ${RELOCATING+ENTRY ("_start")} diff --git a/ld/scripttempl/h8300s.sc b/ld/scripttempl/h8300s.sc index e07253d..72e26e0 100644 --- a/ld/scripttempl/h8300s.sc +++ b/ld/scripttempl/h8300s.sc @@ -1,3 +1,9 @@ +# Copyright (C) 2014 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. + TORS=".tors : { ___ctors = . ; @@ -9,6 +15,12 @@ TORS=".tors : } > ram" cat <<EOF +/* Copyright (C) 2014 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(h8300s) ${RELOCATING+ENTRY ("_start")} diff --git a/ld/scripttempl/h8300sn.sc b/ld/scripttempl/h8300sn.sc index 27ba4a1..63fe282 100644 --- a/ld/scripttempl/h8300sn.sc +++ b/ld/scripttempl/h8300sn.sc @@ -1,3 +1,9 @@ +# Copyright (C) 2014 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. + TORS=".tors : { ___ctors = . ; @@ -9,6 +15,12 @@ TORS=".tors : } > ram" cat <<EOF +/* Copyright (C) 2014 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(h8300sn) ${RELOCATING+ENTRY ("_start")} diff --git a/ld/scripttempl/h8300sx.sc b/ld/scripttempl/h8300sx.sc index 247e977..a69e392 100644 --- a/ld/scripttempl/h8300sx.sc +++ b/ld/scripttempl/h8300sx.sc @@ -1,3 +1,9 @@ +# Copyright (C) 2014 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. + TORS=".tors : { ___ctors = . ; @@ -9,6 +15,12 @@ TORS=".tors : } > ram" cat <<EOF +/* Copyright (C) 2014 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(h8300sx) ${RELOCATING+ENTRY ("_start")} diff --git a/ld/scripttempl/h8300sxn.sc b/ld/scripttempl/h8300sxn.sc index 90bd789..c4d5edb 100644 --- a/ld/scripttempl/h8300sxn.sc +++ b/ld/scripttempl/h8300sxn.sc @@ -1,3 +1,9 @@ +# Copyright (C) 2014 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. + TORS=".tors : { ___ctors = . ; @@ -9,6 +15,12 @@ TORS=".tors : } > ram" cat <<EOF +/* Copyright (C) 2014 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(h8300sxn) ${RELOCATING+ENTRY ("_start")} diff --git a/ld/scripttempl/h8500.sc b/ld/scripttempl/h8500.sc index 6b889dd..47ae411 100644 --- a/ld/scripttempl/h8500.sc +++ b/ld/scripttempl/h8500.sc @@ -1,3 +1,9 @@ +# Copyright (C) 2014 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. + TORS=" ___ctors = . ; *(.ctors) @@ -7,6 +13,12 @@ TORS=" ___dtors_end = . ;" cat <<EOF +/* Copyright (C) 2014 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}) diff --git a/ld/scripttempl/h8500b.sc b/ld/scripttempl/h8500b.sc index fb6c0e8..b9032f0 100644 --- a/ld/scripttempl/h8500b.sc +++ b/ld/scripttempl/h8500b.sc @@ -1,3 +1,9 @@ +# Copyright (C) 2014 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. + TORS=" ___ctors = . ; *(.ctors) @@ -7,6 +13,12 @@ TORS=" ___dtors_end = . ;" cat <<EOF +/* Copyright (C) 2014 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}) diff --git a/ld/scripttempl/h8500c.sc b/ld/scripttempl/h8500c.sc index 145ffc5..962c89e 100644 --- a/ld/scripttempl/h8500c.sc +++ b/ld/scripttempl/h8500c.sc @@ -1,3 +1,9 @@ +# Copyright (C) 2014 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. + TORS=" ___ctors = . ; *(.ctors) @@ -7,6 +13,12 @@ TORS=" ___dtors_end = . ;" cat <<EOF +/* Copyright (C) 2014 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}) diff --git a/ld/scripttempl/h8500m.sc b/ld/scripttempl/h8500m.sc index 3314066..031ab88 100644 --- a/ld/scripttempl/h8500m.sc +++ b/ld/scripttempl/h8500m.sc @@ -1,3 +1,9 @@ +# Copyright (C) 2014 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. + TORS=" ___ctors = . ; *(.ctors) @@ -7,6 +13,12 @@ TORS=" ___dtors_end = . ;" cat <<EOF +/* Copyright (C) 2014 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}) diff --git a/ld/scripttempl/h8500s.sc b/ld/scripttempl/h8500s.sc index da4d210..e571726 100644 --- a/ld/scripttempl/h8500s.sc +++ b/ld/scripttempl/h8500s.sc @@ -1,3 +1,9 @@ +# Copyright (C) 2014 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. + TORS=" ___ctors = . ; *(.ctors) @@ -7,6 +13,12 @@ TORS=" ___dtors_end = . ;" cat <<EOF +/* Copyright (C) 2014 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}) diff --git a/ld/scripttempl/hppaelf.sc b/ld/scripttempl/hppaelf.sc index a96ad54..39d9b58 100644 --- a/ld/scripttempl/hppaelf.sc +++ b/ld/scripttempl/hppaelf.sc @@ -1,6 +1,19 @@ +# Copyright (C) 2014 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. + DATA_ADDR=0x40000000 test "$LD_FLAG" = "N" && DATA_ADDR=. + cat <<EOF +/* Copyright (C) 2014 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}) ${RELOCATING+ENTRY("\$START\$")} diff --git a/ld/scripttempl/i386beos.sc b/ld/scripttempl/i386beos.sc index a8bbd37..3d60724 100644 --- a/ld/scripttempl/i386beos.sc +++ b/ld/scripttempl/i386beos.sc @@ -1,4 +1,10 @@ # Linker script for PE. +# +# Copyright (C) 2014 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 -z "${RELOCATEABLE_OUTPUT_FORMAT}"; then RELOCATEABLE_OUTPUT_FORMAT=${OUTPUT_FORMAT} @@ -33,6 +39,12 @@ else fi cat <<EOF +/* Copyright (C) 2014 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. */ + ${RELOCATING+OUTPUT_FORMAT(${OUTPUT_FORMAT})} ${RELOCATING-OUTPUT_FORMAT(${RELOCATEABLE_OUTPUT_FORMAT})} diff --git a/ld/scripttempl/i386coff.sc b/ld/scripttempl/i386coff.sc index da14632..6ce4854 100644 --- a/ld/scripttempl/i386coff.sc +++ b/ld/scripttempl/i386coff.sc @@ -1,11 +1,25 @@ # Linker script for 386 COFF. This works on SVR3.2 and SCO Unix 3.2.2. # Ian Taylor <ian@cygnus.com>. +# +# Copyright (C) 2014 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. + test -z "$ENTRY" && ENTRY=_start # These are substituted in as variables in order to get '}' in a shell # conditional expansion. INIT='.init : { *(.init) }' FINI='.fini : { *(.fini) }' + cat <<EOF +/* Copyright (C) 2014 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}") ${LIB_SEARCH_DIRS} diff --git a/ld/scripttempl/i386go32.sc b/ld/scripttempl/i386go32.sc index fce4cec..9259daf 100644 --- a/ld/scripttempl/i386go32.sc +++ b/ld/scripttempl/i386go32.sc @@ -1,4 +1,10 @@ # Linker script for i386 go32 (DJGPP) +# +# Copyright (C) 2014 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. test -z "$ENTRY" && ENTRY=start EXE=${CONSTRUCTING+${RELOCATING+-exe}} @@ -15,6 +21,12 @@ DTOR='.dtor : { }' cat <<EOF +/* Copyright (C) 2014 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}${EXE}") ${RELOCATING+ENTRY (${ENTRY})} diff --git a/ld/scripttempl/i386msdos.sc b/ld/scripttempl/i386msdos.sc index 4d312e7..ca9772d 100644 --- a/ld/scripttempl/i386msdos.sc +++ b/ld/scripttempl/i386msdos.sc @@ -1,4 +1,16 @@ +# Copyright (C) 2014 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. + cat <<EOF +/* Copyright (C) 2014 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}) diff --git a/ld/scripttempl/i860coff.sc b/ld/scripttempl/i860coff.sc index f268c6f..645ef3d 100644 --- a/ld/scripttempl/i860coff.sc +++ b/ld/scripttempl/i860coff.sc @@ -1,4 +1,16 @@ +# Copyright (C) 2014 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. + cat <<EOF +/* Copyright (C) 2014 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}") ${LIB_SEARCH_DIRS} PROVIDE (__stack = 0); diff --git a/ld/scripttempl/i960.sc b/ld/scripttempl/i960.sc index dc33555..b86b073 100644 --- a/ld/scripttempl/i960.sc +++ b/ld/scripttempl/i960.sc @@ -1,4 +1,16 @@ +# Copyright (C) 2014 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. + cat <<EOF +/* Copyright (C) 2014 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. */ + SECTIONS { .text : diff --git a/ld/scripttempl/ia64vms.sc b/ld/scripttempl/ia64vms.sc index ba50f66..3c98546 100644 --- a/ld/scripttempl/ia64vms.sc +++ b/ld/scripttempl/ia64vms.sc @@ -1,10 +1,22 @@ # Linker script for Itanium VMS systems. # Tristan Gingold <gingold@adacore.com>. +# +# Copyright (C) 2014 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. PAGESIZE=0x10000 BLOCKSIZE=0x200 cat <<EOF +/* Copyright (C) 2014 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}") ${LIB_SEARCH_DIRS} ENTRY(__entry) diff --git a/ld/scripttempl/ip2k.sc b/ld/scripttempl/ip2k.sc index 1b7f77b..6f20d40 100644 --- a/ld/scripttempl/ip2k.sc +++ b/ld/scripttempl/ip2k.sc @@ -1,4 +1,16 @@ +# Copyright (C) 2014 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. + cat << EOF +/* Copyright (C) 2014 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("elf32-ip2k", "elf32-ip2k", "elf32-ip2k") OUTPUT_ARCH(ip2k) ${RELOCATING+ENTRY(_start)} diff --git a/ld/scripttempl/iq2000.sc b/ld/scripttempl/iq2000.sc index fe1f21d..de288b2 100644 --- a/ld/scripttempl/iq2000.sc +++ b/ld/scripttempl/iq2000.sc @@ -1,3 +1,8 @@ +# Copyright (C) 2014 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. # # Unusual variables checked by this code: # NOP - four byte opcode for no-op (defaults to 0) @@ -108,7 +113,7 @@ DTOR=" .dtors ${CONSTRUCTING-0} : ${CONSTRUCTING+${DTOR_END}} }" -# if this is for an embedded system, don't add SIZEOF_HEADERS. +# If this is for an embedded system, don't add SIZEOF_HEADERS. if [ -z "$EMBEDDED" ]; then test -z "${TEXT_BASE_ADDRESS}" && TEXT_BASE_ADDRESS="${TEXT_START_ADDR} + SIZEOF_HEADERS" else @@ -116,6 +121,12 @@ else fi cat <<EOF +/* Copyright (C) 2014 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}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}") OUTPUT_ARCH(${OUTPUT_ARCH}) diff --git a/ld/scripttempl/m68kaux.sc b/ld/scripttempl/m68kaux.sc index 09032be..6486e28 100644 --- a/ld/scripttempl/m68kaux.sc +++ b/ld/scripttempl/m68kaux.sc @@ -1,4 +1,11 @@ # Linker script for A/UX. +# +# Copyright (C) 2014 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. + test -z "$ENTRY" && ENTRY=_start INIT='.init : { *(.init) }' FINI='.fini : { *(.fini) }' @@ -6,6 +13,12 @@ CTORS='.ctors : { *(.ctors) }' DTORS='.dtors : { *(.dtors) }' cat <<EOF +/* Copyright (C) 2014 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}") ${LIB_SEARCH_DIRS} diff --git a/ld/scripttempl/m68kcoff.sc b/ld/scripttempl/m68kcoff.sc index f268c6f..645ef3d 100644 --- a/ld/scripttempl/m68kcoff.sc +++ b/ld/scripttempl/m68kcoff.sc @@ -1,4 +1,16 @@ +# Copyright (C) 2014 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. + cat <<EOF +/* Copyright (C) 2014 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}") ${LIB_SEARCH_DIRS} PROVIDE (__stack = 0); diff --git a/ld/scripttempl/m88kbcs.sc b/ld/scripttempl/m88kbcs.sc index 0cd6ab9..1340fa2 100644 --- a/ld/scripttempl/m88kbcs.sc +++ b/ld/scripttempl/m88kbcs.sc @@ -1,8 +1,21 @@ +# Copyright (C) 2014 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. + # These are substituted in as variables in order to get '}' in a shell # conditional expansion. INIT='.init : { *(.init) }' FINI='.fini : { *(.fini) }' + cat <<EOF +/* Copyright (C) 2014 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}) ${RELOCATING+ENTRY (__start)} diff --git a/ld/scripttempl/mcorepe.sc b/ld/scripttempl/mcorepe.sc index 0817fe8..3d23973 100644 --- a/ld/scripttempl/mcorepe.sc +++ b/ld/scripttempl/mcorepe.sc @@ -1,4 +1,10 @@ # Linker script for MCore PE. +# +# Copyright (C) 2014 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 -z "${RELOCATEABLE_OUTPUT_FORMAT}"; then RELOCATEABLE_OUTPUT_FORMAT=${OUTPUT_FORMAT} @@ -45,6 +51,12 @@ EOF fi cat <<EOF +/* Copyright (C) 2014 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. */ + ${LIB_SEARCH_DIRS} ${RELOCATING+ENTRY (_mainCRTStartup)} diff --git a/ld/scripttempl/mep.sc b/ld/scripttempl/mep.sc index cf85f76..ac4d88d 100644 --- a/ld/scripttempl/mep.sc +++ b/ld/scripttempl/mep.sc @@ -1,3 +1,8 @@ +# Copyright (C) 2014 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. # # Unusual variables checked by this code: # NOP - four byte opcode for no-op (defaults to 0) @@ -190,7 +195,7 @@ STACK=" .stack ${RELOCATING-0}${RELOCATING+${STACK_ADDR}} : *(.stack) }" -# if this is for an embedded system, don't add SIZEOF_HEADERS. +# If this is for an embedded system, don't add SIZEOF_HEADERS. if [ -z "$EMBEDDED" ]; then test -z "${TEXT_BASE_ADDRESS}" && TEXT_BASE_ADDRESS="${TEXT_START_ADDR} + SIZEOF_HEADERS" else @@ -198,6 +203,12 @@ else fi cat <<EOF +/* Copyright (C) 2014 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}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}") OUTPUT_ARCH(${OUTPUT_ARCH}) diff --git a/ld/scripttempl/mips.sc b/ld/scripttempl/mips.sc index 1be01f9..0517f3e 100644 --- a/ld/scripttempl/mips.sc +++ b/ld/scripttempl/mips.sc @@ -1,7 +1,15 @@ # Linker script for MIPS systems. # Ian Lance Taylor <ian@cygnus.com>. +# +# Copyright (C) 2014 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. +# # These variables may be overridden by the emulation file. The # defaults are appropriate for a DECstation running Ultrix. + test -z "$ENTRY" && ENTRY=__start if [ -z "$EMBEDDED" ]; then @@ -14,7 +22,14 @@ if test "x$LD_FLAG" = "xn" -o "x$LD_FLAG" = "xN"; then else test -z "$DATA_ADDR" && DATA_ADDR=0x10000000 fi + cat <<EOF +/* Copyright (C) 2014 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}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}") ${LIB_SEARCH_DIRS} diff --git a/ld/scripttempl/mipsbsd.sc b/ld/scripttempl/mipsbsd.sc index b222b33..71d6d5a 100644 --- a/ld/scripttempl/mipsbsd.sc +++ b/ld/scripttempl/mipsbsd.sc @@ -1,4 +1,16 @@ +# Copyright (C) 2014 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. + cat <<EOF +/* Copyright (C) 2014 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}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}") OUTPUT_ARCH(${ARCH}) diff --git a/ld/scripttempl/mmo.sc b/ld/scripttempl/mmo.sc index 6671cce..8c6e318 100644 --- a/ld/scripttempl/mmo.sc +++ b/ld/scripttempl/mmo.sc @@ -1,8 +1,22 @@ +# Copyright (C) 2014 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. + # MMO is not a relocateable format, and we don't want to require an # explicit (e.g.) "-m elf64mmix" when -r is used. + test -z $RELOCATEABLE_OUTPUT_FORMAT && RELOCATEABLE_OUTPUT_FORMAT=$OUTPUT_FORMAT test -z ${RELOCATING+0} && OUTPUT_FORMAT=$RELOCATEABLE_OUTPUT_FORMAT + cat <<EOF +/* Copyright (C) 2014 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(mmix) ${RELOCATING+ENTRY(Main)} diff --git a/ld/scripttempl/moxie.sc b/ld/scripttempl/moxie.sc index f7d788f..c761bb2 100644 --- a/ld/scripttempl/moxie.sc +++ b/ld/scripttempl/moxie.sc @@ -1,3 +1,9 @@ +# Copyright (C) 2014 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. + TORS=".tors : { ___ctors = . ; @@ -9,6 +15,12 @@ TORS=".tors : } > ram" cat <<EOF +/* Copyright (C) 2014 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}) diff --git a/ld/scripttempl/nds32elf.sc b/ld/scripttempl/nds32elf.sc index 076e120..fe7f5dd 100644 --- a/ld/scripttempl/nds32elf.sc +++ b/ld/scripttempl/nds32elf.sc @@ -1,3 +1,9 @@ +# Copyright (C) 2014 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. + # This file is variant of elf.sc. For nds32, because the data will be # classified into different sections according to their size, this script # describe these sections map. The order is ".sdata_d, .sdata_w, .sdata_h, @@ -255,7 +261,7 @@ else SIZEOF_HEADERS_CODE= fi -# if this is for an embedded system, don't add SIZEOF_HEADERS. +# If this is for an embedded system, don't add SIZEOF_HEADERS. if [ -z "$EMBEDDED" ]; then test -z "${TEXT_BASE_ADDRESS}" && TEXT_BASE_ADDRESS="${TEXT_START_ADDR}${SIZEOF_HEADERS_CODE}" NDS32_INIT="" @@ -265,6 +271,12 @@ else fi cat <<EOF +/* Copyright (C) 2014 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}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}") OUTPUT_ARCH(${OUTPUT_ARCH}) diff --git a/ld/scripttempl/nw.sc b/ld/scripttempl/nw.sc index 3fb9bce..234a3cd 100644 --- a/ld/scripttempl/nw.sc +++ b/ld/scripttempl/nw.sc @@ -1,3 +1,8 @@ +# Copyright (C) 2014 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. # # Unusual variables checked by this code: # NOP - four byte opcode for no-op (defaults to 0) @@ -20,12 +25,20 @@ # When adding sections, do note that the names of some sections are used # when specifying the start address of the next. # + test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT} test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT} test "$LD_FLAG" = "N" && DATA_ADDR=. INTERP=".interp ${RELOCATING-0} : { *(.interp) }" PLT=".plt ${RELOCATING-0} : { *(.plt) }" + cat <<EOF +/* Copyright (C) 2014 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}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}") OUTPUT_ARCH(${ARCH}) diff --git a/ld/scripttempl/pe.sc b/ld/scripttempl/pe.sc index 579c0c8..7c9fc88 100644 --- a/ld/scripttempl/pe.sc +++ b/ld/scripttempl/pe.sc @@ -1,4 +1,10 @@ # Linker script for PE. +# +# Copyright (C) 2014 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 -z "${RELOCATEABLE_OUTPUT_FORMAT}"; then RELOCATEABLE_OUTPUT_FORMAT=${OUTPUT_FORMAT} @@ -59,6 +65,12 @@ else fi cat <<EOF +/* Copyright (C) 2014 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. */ + ${RELOCATING+OUTPUT_FORMAT(${OUTPUT_FORMAT})} ${RELOCATING-OUTPUT_FORMAT(${RELOCATEABLE_OUTPUT_FORMAT})} ${OUTPUT_ARCH+OUTPUT_ARCH(${OUTPUT_ARCH})} diff --git a/ld/scripttempl/pep.sc b/ld/scripttempl/pep.sc index a71dd21..71f9b48 100644 --- a/ld/scripttempl/pep.sc +++ b/ld/scripttempl/pep.sc @@ -1,4 +1,10 @@ # Linker script for PE. +# +# Copyright (C) 2014 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 -z "${RELOCATEABLE_OUTPUT_FORMAT}"; then RELOCATEABLE_OUTPUT_FORMAT=${OUTPUT_FORMAT} @@ -59,6 +65,12 @@ else fi cat <<EOF +/* Copyright (C) 2014 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. */ + ${RELOCATING+OUTPUT_FORMAT(${OUTPUT_FORMAT})} ${RELOCATING-OUTPUT_FORMAT(${RELOCATEABLE_OUTPUT_FORMAT})} ${OUTPUT_ARCH+OUTPUT_ARCH(${OUTPUT_ARCH})} diff --git a/ld/scripttempl/pj.sc b/ld/scripttempl/pj.sc index 93981a5..dcaa89f 100644 --- a/ld/scripttempl/pj.sc +++ b/ld/scripttempl/pj.sc @@ -1,3 +1,9 @@ +# Copyright (C) 2014 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. + TORS=".tors : { ___ctors = . ; @@ -9,6 +15,12 @@ TORS=".tors : } > ram" cat <<EOF +/* Copyright (C) 2014 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}) diff --git a/ld/scripttempl/ppcpe.sc b/ld/scripttempl/ppcpe.sc index 182fbe5..f67cab8 100644 --- a/ld/scripttempl/ppcpe.sc +++ b/ld/scripttempl/ppcpe.sc @@ -2,11 +2,25 @@ # Loosely based on Steve Chamberlain's pe.sc. # All new mistakes should be credited to Kim Knuttila (krk@cygnus.com) # +# Copyright (C) 2014 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. +# # These are substituted in as variables in order to get '}' in a shell # conditional expansion. + INIT='.init : { *(.init) }' FINI='.fini : { *(.fini) }' + cat <<EOF +/* Copyright (C) 2014 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}) ${LIB_SEARCH_DIRS} diff --git a/ld/scripttempl/psos.sc b/ld/scripttempl/psos.sc index ab8c6c7..ffaee3c 100644 --- a/ld/scripttempl/psos.sc +++ b/ld/scripttempl/psos.sc @@ -1,4 +1,16 @@ +# Copyright (C) 2014 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. + cat <<EOF +/* Copyright (C) 2014 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}) ${RELOCATING+${LIB_SEARCH_DIRS}} diff --git a/ld/scripttempl/riscix.sc b/ld/scripttempl/riscix.sc index c801a0c..966ae8f 100644 --- a/ld/scripttempl/riscix.sc +++ b/ld/scripttempl/riscix.sc @@ -1,4 +1,16 @@ +# Copyright (C) 2014 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. + cat <<EOF +/* Copyright (C) 2014 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}) diff --git a/ld/scripttempl/sh.sc b/ld/scripttempl/sh.sc index e7f049f..b51ff02 100644 --- a/ld/scripttempl/sh.sc +++ b/ld/scripttempl/sh.sc @@ -1,3 +1,9 @@ +# Copyright (C) 2014 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. + TORS=".tors : { ___ctors = . ; @@ -9,6 +15,12 @@ TORS=".tors : } > ram" cat <<EOF +/* Copyright (C) 2014 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}) diff --git a/ld/scripttempl/sparccoff.sc b/ld/scripttempl/sparccoff.sc index 309aa83..b573b6b 100644 --- a/ld/scripttempl/sparccoff.sc +++ b/ld/scripttempl/sparccoff.sc @@ -1,7 +1,21 @@ # Linker script for Sparc COFF. # Based on i386coff.sc by Ian Taylor <ian@cygnus.com>. +# +# Copyright (C) 2014 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. + test -z "$ENTRY" && ENTRY=_start + cat <<EOF +/* Copyright (C) 2014 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}") ${LIB_SEARCH_DIRS} diff --git a/ld/scripttempl/st2000.sc b/ld/scripttempl/st2000.sc index 7ee132a..c24b4c6 100644 --- a/ld/scripttempl/st2000.sc +++ b/ld/scripttempl/st2000.sc @@ -1,8 +1,19 @@ +# Copyright (C) 2014 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. + cat <<EOF +/* Copyright (C) 2014 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 { .text : @@ -15,9 +26,7 @@ SECTIONS *(.bss) *(COMMON) _end = .; - -} - + } } EOF diff --git a/ld/scripttempl/tic30aout.sc b/ld/scripttempl/tic30aout.sc index 28baed3..2a57f1e 100644 --- a/ld/scripttempl/tic30aout.sc +++ b/ld/scripttempl/tic30aout.sc @@ -1,4 +1,16 @@ +# Copyright (C) 2014 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. + cat <<EOF +/* Copyright (C) 2014 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}) diff --git a/ld/scripttempl/tic30coff.sc b/ld/scripttempl/tic30coff.sc index df2d4f7..a0756c7 100644 --- a/ld/scripttempl/tic30coff.sc +++ b/ld/scripttempl/tic30coff.sc @@ -1,4 +1,16 @@ +# Copyright (C) 2014 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. + cat <<EOF +/* Copyright (C) 2014 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("${OUTPUT_ARCH}") @@ -12,47 +24,46 @@ MEMORY SECTIONS { -.vectors 0x00000000 : -{ - *(vectors) -} - -.text : -{ - *(.text) -} > rom + .vectors 0x00000000 : + { + *(vectors) + } -.const : -{ - *(.const) - __etext = . ; -} > rom + .text : + { + *(.text) + } > rom -.mdata : AT( ADDR(.const) + SIZEOF(.const) ) -{ - __data = . ; - *(.data); - __edata = . ; -} > ram + .const : + { + *(.const) + __etext = . ; + } > rom -.bss : -{ - __bss = . ; - *(.bss); - *(COMMON); - __ebss = . ; -} > ram + .mdata : AT( ADDR(.const) + SIZEOF(.const) ) + { + __data = . ; + *(.data); + __edata = . ; + } > ram -.ram0 : -{ - *(ram0) -} > ramblk0 + .bss : + { + __bss = . ; + *(.bss); + *(COMMON); + __ebss = . ; + } > ram -.ram1 : -{ - *(ram1) -} > ramblk1 + .ram0 : + { + *(ram0) + } > ramblk0 + .ram1 : + { + *(ram1) + } > ramblk1 } EOF diff --git a/ld/scripttempl/tic4xcoff.sc b/ld/scripttempl/tic4xcoff.sc index 83245ca..1e40ccb 100644 --- a/ld/scripttempl/tic4xcoff.sc +++ b/ld/scripttempl/tic4xcoff.sc @@ -1,3 +1,9 @@ +# Copyright (C) 2014 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. + # In microcomputer (MC) mode, the vectors are mapped into the on-chip ROM, # otherwise in microprocessor (MP) mode the vectors are mapped to address 0 # on the external bus. In MC mode, the on-chip ROM contains a bootloader program @@ -70,6 +76,12 @@ cat <<EOF ${RELOCATING+/* Linker script for $OUTPUT_ARCHNAME executable. */} ${RELOCATING-/* Linker script for $OUTPUT_ARCHNAME object file (ld -r). */} +/* Copyright (C) 2014 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("${OUTPUT_ARCH}") ${LIB_SEARCH_DIRS} diff --git a/ld/scripttempl/tic54xcoff.sc b/ld/scripttempl/tic54xcoff.sc index f17b480..b21af9c 100644 --- a/ld/scripttempl/tic54xcoff.sc +++ b/ld/scripttempl/tic54xcoff.sc @@ -1,8 +1,21 @@ -# default linker script for c54x, TI COFF(1). +# Default linker script for c54x, TI COFF(1). # patterned after description in TI Assembler Tools PDF, SPRU102C, 7-53 +# +# Copyright (C) 2014 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. + test -z "$ENTRY" && ENTRY=_c_int00 cat <<EOF +/* Copyright (C) 2014 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("${OUTPUT_ARCH}") diff --git a/ld/scripttempl/tic80coff.sc b/ld/scripttempl/tic80coff.sc index f28e904..055c496 100644 --- a/ld/scripttempl/tic80coff.sc +++ b/ld/scripttempl/tic80coff.sc @@ -1,5 +1,11 @@ # Linker script for TI TMS320C80 (tic80) COFF. # +# Copyright (C) 2014 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. +# # Besides the shell variables set by the emulparams script, and the LD_FLAG # variable, the genscripts.sh script will set the following variables for each # time this script is run to generate one of the linker scripts for ldscripts: @@ -20,6 +26,12 @@ test -z "$TEXT_START_ADDR" && TEXT_START_ADDR="0x80000 + SIZEOF_HEADERS" test -z "$ENTRY" && ENTRY=__start cat <<EOF +/* Copyright (C) 2014 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}") ${LIB_SEARCH_DIRS} diff --git a/ld/scripttempl/v850.sc b/ld/scripttempl/v850.sc index 4af97e4..e4e9e5f 100644 --- a/ld/scripttempl/v850.sc +++ b/ld/scripttempl/v850.sc @@ -1,4 +1,16 @@ +# Copyright (C) 2014 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. + cat << EOF +/* Copyright (C) 2014 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("elf32-v850", "elf32-v850", "elf32-v850") OUTPUT_ARCH(v850) diff --git a/ld/scripttempl/v850_rh850.sc b/ld/scripttempl/v850_rh850.sc index 1b8635f..3e59263 100644 --- a/ld/scripttempl/v850_rh850.sc +++ b/ld/scripttempl/v850_rh850.sc @@ -1,4 +1,16 @@ +# Copyright (C) 2014 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. + cat << EOF +/* Copyright (C) 2014 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("elf32-v850-rh850", "elf32-v850-rh850", "elf32-v850-rh850") OUTPUT_ARCH(v850-rh850) diff --git a/ld/scripttempl/vanilla.sc b/ld/scripttempl/vanilla.sc index 1798480..ed78607 100644 --- a/ld/scripttempl/vanilla.sc +++ b/ld/scripttempl/vanilla.sc @@ -1 +1,6 @@ # Nothing to do. +# Copyright (C) 2014 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. diff --git a/ld/scripttempl/w65.sc b/ld/scripttempl/w65.sc index f92d999..4146784 100644 --- a/ld/scripttempl/w65.sc +++ b/ld/scripttempl/w65.sc @@ -1,3 +1,9 @@ +# Copyright (C) 2014 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. + TORS=".tors : { ___ctors = . ; @@ -9,6 +15,12 @@ TORS=".tors : } > ram" cat <<EOF +/* Copyright (C) 2014 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}) diff --git a/ld/scripttempl/xstormy16.sc b/ld/scripttempl/xstormy16.sc index b285751..3f73598 100644 --- a/ld/scripttempl/xstormy16.sc +++ b/ld/scripttempl/xstormy16.sc @@ -1,3 +1,8 @@ +# Copyright (C) 2014 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. # # Unusual variables checked by this code: # NOP - two byte opcode for no-op (defaults to 0) @@ -93,6 +98,12 @@ DTOR=" .dtors ${CONSTRUCTING-0} : } > ROM" cat <<EOF +/* Copyright (C) 2014 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}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}") OUTPUT_ARCH(${OUTPUT_ARCH}) diff --git a/ld/scripttempl/z80.sc b/ld/scripttempl/z80.sc index 8c004da..408a3cb 100644 --- a/ld/scripttempl/z80.sc +++ b/ld/scripttempl/z80.sc @@ -1,6 +1,18 @@ +# Copyright (C) 2014 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 [ x${LD_FLAG} = x ] then cat << EOF +/* Copyright (C) 2014 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. */ + /* Create a cp/m executable; load and execute at 0x100. */ OUTPUT_FORMAT("binary") . = 0x100; diff --git a/ld/scripttempl/z8000.sc b/ld/scripttempl/z8000.sc index b03f5d8..0c5230c 100644 --- a/ld/scripttempl/z8000.sc +++ b/ld/scripttempl/z8000.sc @@ -1,4 +1,16 @@ +# Copyright (C) 2014 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. + cat <<EOF +/* Copyright (C) 2014 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("${OUTPUT_ARCH}") ${RELOCATING+ENTRY (_start)} |