diff options
author | Nick Clifton <nickc@redhat.com> | 2014-04-24 11:35:51 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2014-04-24 11:35:51 +0100 |
commit | aaca88efb450bff71523d7d6f23a67f47a4d5fb3 (patch) | |
tree | b88196154f8c9048cc9eed22d654f1b2ed289a54 /gas | |
parent | 3714081cb37fc60f3262b4c64e81539eb4f3592f (diff) | |
download | gdb-aaca88efb450bff71523d7d6f23a67f47a4d5fb3.zip gdb-aaca88efb450bff71523d7d6f23a67f47a4d5fb3.tar.gz gdb-aaca88efb450bff71523d7d6f23a67f47a4d5fb3.tar.bz2 |
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.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-arm.c | 3 |
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, |