aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorClaudiu Zissulescu <claziss@synopsys.com>2016-04-12 14:51:57 +0200
committerClaudiu Zissulescu <claziss@synopsys.com>2016-04-13 16:48:11 +0200
commit1adc8a9a7f48c5893c6a5e45384695732dd2f136 (patch)
tree43f0fc5c084ce307cf8b627ee5fa6376cb86feff /gas/config
parent8392fa22d69113602407281cbb364f29557c39b1 (diff)
downloadgdb-1adc8a9a7f48c5893c6a5e45384695732dd2f136.zip
gdb-1adc8a9a7f48c5893c6a5e45384695732dd2f136.tar.gz
gdb-1adc8a9a7f48c5893c6a5e45384695732dd2f136.tar.bz2
[ARC] Fix setting private elf flags when parsing .cpu.
gas/ 2016-04-12 Claudiu Zissulescu <claziss@synopsys.com> * config/tc-arc.c (mach_type_specified_p): Change type to bfd_boolean. (arc_option): Set private flags when parsing cpu pseudo-op. (md_parse_option): Set mach_type_specified_p to TRUE.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-arc.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c
index 7486924..17e0b9a 100644
--- a/gas/config/tc-arc.c
+++ b/gas/config/tc-arc.c
@@ -396,8 +396,8 @@ static unsigned arc_features;
/* The default architecture. */
static int arc_mach_type;
-/* Non-zero if the cpu type has been explicitly specified. */
-static int mach_type_specified_p = 0;
+/* TRUE if the cpu type has been explicitly specified. */
+static bfd_boolean mach_type_specified_p = FALSE;
/* The hash table of instruction opcodes. */
static struct hash_control *arc_opcode_hash;
@@ -902,6 +902,9 @@ arc_option (int ignore ATTRIBUTE_UNUSED)
if (!bfd_set_arch_mach (stdoutput, bfd_arch_arc, mach))
as_fatal (_("could not set architecture and machine"));
+
+ /* Set elf header flags. */
+ bfd_set_private_flags (stdoutput, arc_eflag);
}
else
if (arc_mach_type != mach)
@@ -3156,7 +3159,7 @@ md_parse_option (int c, const char *arg ATTRIBUTE_UNUSED)
case OPTION_MCPU:
{
arc_select_cpu (arg);
- mach_type_specified_p = 1;
+ mach_type_specified_p = TRUE;
break;
}