projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb: Convert language la_lookup_symbol_nonlocal field to a method
[deliverable/binutils-gdb.git]
/
ld
/
emultempl
/
msp430.em
diff --git
a/ld/emultempl/msp430.em
b/ld/emultempl/msp430.em
index 765a9ea288a3b6847cb2625d62f22589e54f7442..c823a6d9b5868846ce3c00f662462bb27c5741c6 100644
(file)
--- a/
ld/emultempl/msp430.em
+++ b/
ld/emultempl/msp430.em
@@
-4,7
+4,7
@@
fragment <<EOF
/* This file is is generated by a shell script. DO NOT EDIT! */
/* Emulate the original gld for the given ${EMULATION_NAME}
/* This file is is generated by a shell script. DO NOT EDIT! */
/* Emulate the original gld for the given ${EMULATION_NAME}
- Copyright (C) 2014-20
19
Free Software Foundation, Inc.
+ Copyright (C) 2014-20
20
Free Software Foundation, Inc.
Written by Steve Chamberlain steve@cygnus.com
Extended for the MSP430 by Nick Clifton nickc@redhat.com
Written by Steve Chamberlain steve@cygnus.com
Extended for the MSP430 by Nick Clifton nickc@redhat.com
@@
-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 "ld.h"
#include "getopt.h"
#include "ld.h"
#include "getopt.h"
@@
-329,8
+330,7
@@
gld${EMULATION_NAME}_place_orphan (asection * s,
end:
free (upper_name);
free (lower_name);
end:
free (upper_name);
free (lower_name);
- if (buf)
- free (buf);
+ free (buf);
return lower;
}
EOF
return lower;
}
EOF
@@
-382,10
+382,10
@@
change_output_section (lang_statement_union_type ** head,
}
static void
}
static void
-add_region_prefix (bfd *abfd, asection *s,
-
ATTRIBUTE_UNUSED void *unused
)
+add_region_prefix (bfd *abfd
ATTRIBUTE_UNUSED
, asection *s,
+
void *unused ATTRIBUTE_UNUSED
)
{
{
- const char *curr_name = bfd_
get_section_name (abfd,
s);
+ const char *curr_name = bfd_
section_name (
s);
int region = REGION_NONE;
if (strncmp (curr_name, ".text", 5) == 0)
int region = REGION_NONE;
if (strncmp (curr_name, ".text", 5) == 0)
@@
-404,10
+404,10
@@
add_region_prefix (bfd *abfd, asection *s,
case REGION_NONE:
break;
case REGION_UPPER:
case REGION_NONE:
break;
case REGION_UPPER:
- bfd_rename_section (
abfd,
s, concat (".upper", curr_name, NULL));
+ bfd_rename_section (s, concat (".upper", curr_name, NULL));
break;
case REGION_LOWER:
break;
case REGION_LOWER:
- bfd_rename_section (
abfd,
s, concat (".lower", curr_name, NULL));
+ bfd_rename_section (s, concat (".lower", curr_name, NULL));
break;
case REGION_EITHER:
s->name = concat (".either", curr_name, NULL);
break;
case REGION_EITHER:
s->name = concat (".either", curr_name, NULL);
@@
-538,7
+538,8
@@
gld${EMULATION_NAME}_handle_option (int optc)
}
static void
}
static void
-eval_upper_either_sections (bfd *abfd, asection *s, void *data)
+eval_upper_either_sections (bfd *abfd ATTRIBUTE_UNUSED,
+ asection *s, void *data)
{
const char * base_sec_name;
const char * curr_name;
{
const char * base_sec_name;
const char * curr_name;
@@
-560,7
+561,7
@@
eval_upper_either_sections (bfd *abfd, asection *s, void *data)
return;
base_sec_name = (const char *) data;
return;
base_sec_name = (const char *) data;
- curr_name = bfd_
get_section_name (abfd,
s);
+ curr_name = bfd_
section_name (
s);
/* Only concerned with .either input sections in the upper output section. */
either_name = concat (".either", base_sec_name, NULL);
/* Only concerned with .either input sections in the upper output section. */
either_name = concat (".either", base_sec_name, NULL);
@@
-620,7
+621,8
@@
eval_upper_either_sections (bfd *abfd, asection *s, void *data)
}
static void
}
static void
-eval_lower_either_sections (bfd *abfd, asection *s, void *data)
+eval_lower_either_sections (bfd *abfd ATTRIBUTE_UNUSED,
+ asection *s, void *data)
{
const char * base_sec_name;
const char * curr_name;
{
const char * base_sec_name;
const char * curr_name;
@@
-640,7
+642,7
@@
eval_lower_either_sections (bfd *abfd, asection *s, void *data)
return;
base_sec_name = (const char *) data;
return;
base_sec_name = (const char *) data;
- curr_name = bfd_
get_section_name (abfd,
s);
+ curr_name = bfd_
section_name (
s);
/* Only concerned with .either input sections in the lower or "default"
output section i.e. not in the upper output section. */
/* Only concerned with .either input sections in the lower or "default"
output section i.e. not in the upper output section. */
@@
-822,6
+824,7
@@
struct ld_emulation_xfer_struct ld_${EMULATION_NAME}_emulation =
${LDEMUL_AFTER_PARSE-after_parse_default},
msp430_elf_after_open,
after_check_relocs_default,
${LDEMUL_AFTER_PARSE-after_parse_default},
msp430_elf_after_open,
after_check_relocs_default,
+ before_place_orphans_default,
msp430_elf_after_allocation,
${LDEMUL_SET_OUTPUT_ARCH-set_output_arch_default},
${LDEMUL_CHOOSE_TARGET-ldemul_default_target},
msp430_elf_after_allocation,
${LDEMUL_SET_OUTPUT_ARCH-set_output_arch_default},
${LDEMUL_CHOOSE_TARGET-ldemul_default_target},
@@
-842,7
+845,10
@@
struct ld_emulation_xfer_struct ld_${EMULATION_NAME}_emulation =
${LDEMUL_RECOGNIZED_FILE-NULL},
${LDEMUL_FIND_POTENTIAL_LIBRARIES-NULL},
${LDEMUL_NEW_VERS_PATTERN-NULL},
${LDEMUL_RECOGNIZED_FILE-NULL},
${LDEMUL_FIND_POTENTIAL_LIBRARIES-NULL},
${LDEMUL_NEW_VERS_PATTERN-NULL},
- ${LDEMUL_EXTRA_MAP_FILE_TEXT-NULL}
+ ${LDEMUL_EXTRA_MAP_FILE_TEXT-NULL},
+ ${LDEMUL_EMIT_CTF_EARLY-NULL},
+ ${LDEMUL_EXAMINE_STRTAB_FOR_CTF-NULL},
+ ${LDEMUL_PRINT_SYMBOL-NULL}
};
EOF
#
\f
};
EOF
#
\f
This page took
0.02448 seconds
and
4
git commands to generate.