Fix a problem building the ARM assembler for non-ELF based toolchains.
authorNick Clifton <nickc@redhat.com>
Thu, 24 Apr 2014 10:35:51 +0000 (11:35 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 24 Apr 2014 10:35:51 +0000 (11:35 +0100)
* config/tc-arm.c (s_ltorg): Only create a mapping symbol for ELF
based targets.

gas/ChangeLog
gas/config/tc-arm.c

index 1270f3c647a0f55c1e195d0162fb26fe51eb07a2..9e85e1bd595c138bb9e9f79b6aa893efbdce1921 100644 (file)
@@ -1,3 +1,8 @@
+2014-04-24  Nick Clifton  <nickc@redhat.com>
+
+       * config/tc-arm.c (s_ltorg): Only create a mapping symbol for ELF
+       based targets.
+
 2014-04-23  Will Newton  <will.newton@linaro.org>
 
        * config/tc-arm.c (s_ltorg): Call make_mapping_symbol
index 43e58b0d15a187313e9ccbd13dee6da29ef7e89e..590855c2a6028db626e01fc6bb5e759ece68c580 100644 (file)
@@ -3335,9 +3335,10 @@ s_ltorg (int ignored ATTRIBUTE_UNUSED)
 
   record_alignment (now_seg, 2);
 
+#ifdef OBJ_ELF
   seg_info (now_seg)->tc_segment_info_data.mapstate = MAP_DATA;
   make_mapping_symbol (MAP_DATA, (valueT) frag_now_fix (), frag_now);
-
+#endif
   sprintf (sym_name, "$$lit_\002%x", pool->id);
 
   symbol_locate (pool->symbol, sym_name, now_seg,
This page took 0.036171 seconds and 4 git commands to generate.