From: Nick Clifton Date: Thu, 24 Apr 2014 10:35:51 +0000 (+0100) Subject: Fix a problem building the ARM assembler for non-ELF based toolchains. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aaca88efb450bff71523d7d6f23a67f47a4d5fb3;p=binutils-gdb.git 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. --- 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,