projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Indent labels
[deliverable/binutils-gdb.git]
/
ld
/
emultempl
/
ticoff.em
diff --git
a/ld/emultempl/ticoff.em
b/ld/emultempl/ticoff.em
index a94f93760ce9b8fe063662776d44470aa075da3c..60c0da9f1b16880efb93d74ebd322213a8684c8d 100644
(file)
--- a/
ld/emultempl/ticoff.em
+++ b/
ld/emultempl/ticoff.em
@@
-3,7
+3,7
@@
(echo;echo;echo;echo)>e${EMULATION_NAME}.c # there, now line numbers match ;-)
fragment <<EOF
/* This file is part of GLD, the Gnu Linker.
(echo;echo;echo;echo)>e${EMULATION_NAME}.c # there, now line numbers match ;-)
fragment <<EOF
/* This file is part of GLD, the Gnu Linker.
- Copyright (C) 1999-20
14
Free Software Foundation, Inc.
+ Copyright (C) 1999-20
20
Free Software Foundation, Inc.
This file is part of the GNU Binutils.
This file is part of the GNU Binutils.
@@
-30,6
+30,7
@@
fragment <<EOF
#include "sysdep.h"
#include "bfd.h"
#include "bfdlink.h"
#include "sysdep.h"
#include "bfd.h"
#include "bfdlink.h"
+#include "ctf-api.h"
#include "getopt.h"
#include "ld.h"
#include "getopt.h"
#include "ld.h"
@@
-78,17
+79,17
@@
gld${EMULATION_NAME}_handle_option (int optc)
case OPTION_COFF_FORMAT:
if ((*optarg == '0' || *optarg == '1' || *optarg == '2')
case OPTION_COFF_FORMAT:
if ((*optarg == '0' || *optarg == '1' || *optarg == '2')
-
&& optarg[1] == '\0')
- {
- static char buf[] = "coffX-${OUTPUT_FORMAT_TEMPLATE}";
- coff_version = *optarg - '0';
- buf[4] = *optarg;
- lang_add_output_format (buf, NULL, NULL, 0);
- }
+ && optarg[1] == '\0')
+
{
+
static char buf[] = "coffX-${OUTPUT_FORMAT_TEMPLATE}";
+
coff_version = *optarg - '0';
+
buf[4] = *optarg;
+
lang_add_output_format (buf, NULL, NULL, 0);
+
}
else
else
-
{
- einfo (_("%
P%F
: invalid COFF format version %s\n"), optarg);
-
}
+ {
+ einfo (_("%
F%P
: invalid COFF format version %s\n"), optarg);
+ }
break;
}
return FALSE;
break;
}
return FALSE;
@@
-118,9
+119,9
@@
$s/$/n"/
fragment <<EOF
{
*isfile = 0;
fragment <<EOF
{
*isfile = 0;
- if (
link_info.relocatable
&& config.build_constructors)
+ if (
bfd_link_relocatable (&link_info)
&& config.build_constructors)
return `sed "$sc" ldscripts/${EMULATION_NAME}.xu`;
return `sed "$sc" ldscripts/${EMULATION_NAME}.xu`;
- else if (
link_info.relocatable
)
+ else if (
bfd_link_relocatable (&link_info)
)
return `sed "$sc" ldscripts/${EMULATION_NAME}.xr`;
else if (!config.text_read_only)
return `sed "$sc" ldscripts/${EMULATION_NAME}.xbn`;
return `sed "$sc" ldscripts/${EMULATION_NAME}.xr`;
else if (!config.text_read_only)
return `sed "$sc" ldscripts/${EMULATION_NAME}.xbn`;
@@
-138,9
+139,9
@@
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";
@@
-161,6
+162,8
@@
struct ld_emulation_xfer_struct ld_${EMULATION_NAME}_emulation =
hll_default,
after_parse_default,
after_open_default,
hll_default,
after_parse_default,
after_open_default,
+ after_check_relocs_default,
+ before_place_orphans_default,
after_allocation_default,
set_output_arch_default,
ldemul_default_target,
after_allocation_default,
set_output_arch_default,
ldemul_default_target,
@@
-180,6
+183,9
@@
struct ld_emulation_xfer_struct ld_${EMULATION_NAME}_emulation =
gld_${EMULATION_NAME}_list_options,
NULL, /* recognized file */
NULL, /* find_potential_libraries */
gld_${EMULATION_NAME}_list_options,
NULL, /* recognized file */
NULL, /* find_potential_libraries */
- NULL /* new_vers_pattern */
+ NULL, /* new_vers_pattern */
+ NULL, /* extra_map_file_text */
+ ${LDEMUL_EMIT_CTF_EARLY-NULL},
+ ${LDEMUL_EXAMINE_STRTAB_FOR_CTF-NULL}
};
EOF
};
EOF
This page took
0.025422 seconds
and
4
git commands to generate.