projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for disabling automatic generation of .eh_frame_hdr sections in ELF based...
[deliverable/binutils-gdb.git]
/
ld
/
emultempl
/
gld960c.em
diff --git
a/ld/emultempl/gld960c.em
b/ld/emultempl/gld960c.em
index 452c194b456e6be13d79e1c3ae3f6cfd3ba8941c..6b80be2ac4bdcc7784cf96f49a497676ae9b812b 100644
(file)
--- a/
ld/emultempl/gld960c.em
+++ b/
ld/emultempl/gld960c.em
@@
-1,33
+1,30
@@
# This shell script emits a C file. -*- C -*-
# It does some substitutions.
# This shell script emits a C file. -*- C -*-
# It does some substitutions.
-cat >e${EMULATION_NAME}.c <<EOF
-/* Copyright 1991, 1993, 1994, 1996, 1999, 2000, 2001, 2002, 2003, 2004,
- 2005 Free Software Foundation, Inc.
+fragment <<EOF
+/* Copyright (C) 1991-2016 Free Software Foundation, Inc.
-
This file is part of GLD, the Gnu Linker
.
+
This file is part of the GNU Binutils
.
-
GLD
is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 1, or (at your option)
-any later version.
+
This program
is free software; you can redistribute it and/or modify
+
it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+
(at your option)
any later version.
-
GLD
is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
+
This program
is distributed in the hope that it will be useful,
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+
GNU General Public License for more details.
-You should have received a copy of the GNU General Public License
-
along with GLD; see the file COPYING. If not, write to the Fre
e
-Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
-02110-1301, USA. */
+
You should have received a copy of the GNU General Public License
+
along with this program; if not, write to the Free Softwar
e
+ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
+
MA
02110-1301, USA. */
-/*
- * emulate the Intels port of gld
- */
+/* Emulate the Intel's port of gld. */
-#include "bfd.h"
#include "sysdep.h"
#include "sysdep.h"
+#include "bfd.h"
#include "libiberty.h"
#include "safe-ctype.h"
#include "bfdlink.h"
#include "libiberty.h"
#include "safe-ctype.h"
#include "bfdlink.h"
@@
-89,22
+86,22
@@
static char *
gld960_get_script (int *isfile)
EOF
gld960_get_script (int *isfile)
EOF
-if test
-n "$COMPILE_IN"
+if test
x"$COMPILE_IN" = xyes
then
# Scripts compiled in.
# sed commands to quote an ld script as a C string.
sc="-f stringify.sed"
then
# Scripts compiled in.
# sed commands to quote an ld script as a C string.
sc="-f stringify.sed"
-
cat >>e${EMULATION_NAME}.c
<<EOF
+
fragment
<<EOF
{
*isfile = 0;
{
*isfile = 0;
- if (
link_info.relocatable
&& config.build_constructors)
+ if (
bfd_link_relocatable (&link_info)
&& config.build_constructors)
return
EOF
sed $sc ldscripts/${EMULATION_NAME}.xu >> e${EMULATION_NAME}.c
return
EOF
sed $sc ldscripts/${EMULATION_NAME}.xu >> e${EMULATION_NAME}.c
-echo ' ; else if (
link_info.relocatable) return'
>> e${EMULATION_NAME}.c
+echo ' ; else if (
bfd_link_relocatable (&link_info)) return'
>> e${EMULATION_NAME}.c
sed $sc ldscripts/${EMULATION_NAME}.xr >> e${EMULATION_NAME}.c
echo ' ; else if (!config.text_read_only) return' >> e${EMULATION_NAME}.c
sed $sc ldscripts/${EMULATION_NAME}.xbn >> e${EMULATION_NAME}.c
sed $sc ldscripts/${EMULATION_NAME}.xr >> e${EMULATION_NAME}.c
echo ' ; else if (!config.text_read_only) return' >> e${EMULATION_NAME}.c
sed $sc ldscripts/${EMULATION_NAME}.xbn >> e${EMULATION_NAME}.c
@@
-117,13
+114,13
@@
echo '; }' >> e${EMULATION_NAME}.c
else
# Scripts read from the filesystem.
else
# Scripts read from the filesystem.
-
cat >>e${EMULATION_NAME}.c
<<EOF
+
fragment
<<EOF
{
*isfile = 1;
{
*isfile = 1;
- if (
link_info.relocatable
&& config.build_constructors)
+ if (
bfd_link_relocatable (&link_info)
&& config.build_constructors)
return "ldscripts/${EMULATION_NAME}.xu";
return "ldscripts/${EMULATION_NAME}.xu";
- else if (
link_info.relocatable
)
+ else if (
bfd_link_relocatable (&link_info)
)
return "ldscripts/${EMULATION_NAME}.xr";
else if (!config.text_read_only)
return "ldscripts/${EMULATION_NAME}.xbn";
return "ldscripts/${EMULATION_NAME}.xr";
else if (!config.text_read_only)
return "ldscripts/${EMULATION_NAME}.xbn";
@@
-136,7
+133,7
@@
EOF
fi
fi
-
cat >>e${EMULATION_NAME}.c
<<EOF
+
fragment
<<EOF
struct ld_emulation_xfer_struct ld_gld960coff_emulation =
{
struct ld_emulation_xfer_struct ld_gld960coff_emulation =
{
@@
-149,11
+146,10
@@
struct ld_emulation_xfer_struct ld_gld960coff_emulation =
gld960_set_output_arch,
gld960_choose_target,
before_allocation_default,
gld960_set_output_arch,
gld960_choose_target,
before_allocation_default,
- do_assignments_default,
gld960_get_script,
"960coff",
"",
gld960_get_script,
"960coff",
"",
- NULL, /* finish */
+ finish_default,
NULL, /* create output section statements */
NULL, /* open dynamic archive */
NULL, /* place orphan */
NULL, /* create output section statements */
NULL, /* open dynamic archive */
NULL, /* place orphan */
@@
-165,6
+161,7
@@
struct ld_emulation_xfer_struct ld_gld960coff_emulation =
NULL, /* list options */
NULL, /* recognized file */
NULL, /* find_potential_libraries */
NULL, /* list options */
NULL, /* recognized file */
NULL, /* find_potential_libraries */
- NULL /* new_vers_pattern */
+ NULL, /* new_vers_pattern */
+ NULL /* extra_map_file_text */
};
EOF
};
EOF
This page took
0.026141 seconds
and
4
git commands to generate.