From aaca88efb450bff71523d7d6f23a67f47a4d5fb3 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 24 Apr 2014 11:35:51 +0100 Subject: [PATCH] Fix a problem building the ARM assembler for non-ELF based toolchains. * config/tc-arm.c (s_ltorg): Only create a mapping symbol for ELF based targets. --- gas/ChangeLog | 5 +++++ gas/config/tc-arm.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 1270f3c647a..9e85e1bd595 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2014-04-24 Nick Clifton + + * config/tc-arm.c (s_ltorg): Only create a mapping symbol for ELF + based targets. + 2014-04-23 Will Newton * 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 43e58b0d15a..590855c2a60 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, -- 2.30.2