Update year range in copyright notice of all files.
[deliverable/binutils-gdb.git] / ld / emultempl / arclinux.em
CommitLineData
886a2506 1# This shell script emits a C file. -*- C -*-
2571583a 2# Copyright (C) 2007-2017 Free Software Foundation, Inc.
886a2506
NC
3#
4# Copyright 2008-2012 Synopsys Inc.
5#
6# This file is part of GLD, the Gnu Linker.
7#
8# This program is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation; either version 2 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
21# MA 02110-1301, USA.
22
23# This file is sourced from elf32.em, and defines extra arc-linux
24# specific routines.
25#
26cat >>e${EMULATION_NAME}.c <<EOF
27extern char * init_str;
28extern char * fini_str;
29EOF
30
31PARSE_AND_LIST_PROLOGUE='
32#define OPTION_INIT 300+1
33#define OPTION_FINI (OPTION_INIT+1)
34'
35PARSE_AND_LIST_LONGOPTS='
36 /* PE options */
37 { "init", required_argument, NULL, OPTION_INIT },
38 { "fini", required_argument, NULL, OPTION_FINI },
39'
40
41# FIXME: Should set PARSE_AND_LIST_OPTIONS to provide a short description
42# of the options.
43
44PARSE_AND_LIST_ARGS_CASES='
45 case OPTION_FINI:
46 fini_str = optarg;
47 break;
48
49 case OPTION_INIT:
50 init_str = optarg;
51 break;
52'
This page took 0.071147 seconds and 4 git commands to generate.