1214571Sdim# This shell script emits a C file. -*- C -*- 2214571Sdim# Copyright 2006 Free Software Foundation, Inc. 3214571Sdim# 4214571Sdim# This file is part of GLD, the Gnu Linker. 5214571Sdim# 6214571Sdim# This program is free software; you can redistribute it and/or modify 7214571Sdim# it under the terms of the GNU General Public License as published by 8214571Sdim# the Free Software Foundation; either version 2 of the License, or 9214571Sdim# (at your option) any later version. 10214571Sdim# 11214571Sdim# This program is distributed in the hope that it will be useful, 12214571Sdim# but WITHOUT ANY WARRANTY; without even the implied warranty of 13214571Sdim# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14214571Sdim# GNU General Public License for more details. 15214571Sdim# 16214571Sdim# You should have received a copy of the GNU General Public License 17214571Sdim# along with this program; if not, write to the Free Software 18214571Sdim# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. 19214571Sdim# 20214571Sdim 21214571Sdim# This file is sourced from generic.em 22214571Sdim# 23214571Sdimcat >>e${EMULATION_NAME}.c <<EOF 24214571Sdim#include "elf-bfd.h" 25214571Sdim 26214571SdimEOF 27214571Sdim. ${srcdir}/emultempl/elf-generic.em 28214571Sdimcat >>e${EMULATION_NAME}.c <<EOF 29214571Sdim 30214571Sdimstatic void 31214571Sdimgld${EMULATION_NAME}_finish (void) 32214571Sdim{ 33214571Sdim gld${EMULATION_NAME}_map_segments (FALSE); 34214571Sdim finish_default (); 35214571Sdim} 36214571SdimEOF 37214571Sdim# Put these extra routines in ld_${EMULATION_NAME}_emulation 38214571Sdim# 39214571SdimLDEMUL_FINISH=gld${EMULATION_NAME}_finish 40