+2015-03-05 Nick Clifton <nickc@redhat.com>
+
+ * config/tc-v850.c (md_parse_option): Fix code to set or clear
+ EF_RH850_DATA_ALIGN8 bit in ELF header, based upon the use of the
+ -m8byte-align and -m4byte-align command line options.
+
2015-03-04 Richard Sandiford <richard.sandiford@arm.com>
PR gas/17843
v850_target_format = "elf32-v850-rh850";
}
else if (strcmp (arg, "8byte-align") == 0)
- v850_data_8 = TRUE;
+ {
+ v850_data_8 = TRUE;
+ v850_e_flags |= EF_RH850_DATA_ALIGN8;
+ }
else if (strcmp (arg, "4byte-align") == 0)
- v850_data_8 = FALSE;
+ {
+ v850_data_8 = FALSE;
+ v850_e_flags &= ~ EF_RH850_DATA_ALIGN8;
+ }
else if (strcmp (arg, "soft-float") == 0)
soft_float = 1;
else if (strcmp (arg, "hard-float") == 0)
soft_float = 0;
- else if (strcmp (arg, "8byte-align") == 0)
- v850_e_flags |= EF_RH850_DATA_ALIGN8;
- else if (strcmp (arg, "4byte-align") == 0)
- v850_e_flags &= ~ EF_RH850_DATA_ALIGN8;
else
return 0;