aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-arm.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 1270f3c..9e85e1b 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 43e58b0..590855c 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -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,