diff options
author | Renlin Li <renlin.li@arm.com> | 2015-04-28 17:10:26 +0100 |
---|---|---|
committer | Jiong Wang <jiong.wang@arm.com> | 2015-04-28 17:10:26 +0100 |
commit | f9c1b181a7e4985fbd7eb80365abe5a9ed7197a2 (patch) | |
tree | dd7831c18b34264c6d32d4bd119bc75eb32c38c1 /gas/config | |
parent | 24b73f8e74857245c0a7ea07c2a360237abcdfc0 (diff) | |
download | gdb-f9c1b181a7e4985fbd7eb80365abe5a9ed7197a2.zip gdb-f9c1b181a7e4985fbd7eb80365abe5a9ed7197a2.tar.gz gdb-f9c1b181a7e4985fbd7eb80365abe5a9ed7197a2.tar.bz2 |
[ARM]Positively emit symbols for alignment
2015-04-28 Renlin Li <renlin.li@arm.com>
gas/
* config/tc-arm.c (arm_init_frag): Always emit mapping symbols.
gas/testsuite/
* gas/arm/thumb2_vpool_be.d: Adjust the desired output.
* gas/arm/vldconst_be.d: Ditto.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-arm.c | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 78b1ae5..5ce4da5 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -21028,24 +21028,22 @@ arm_init_frag (fragS * fragP, int max_chars) /* If the current ARM vs THUMB mode has not already been recorded into this frag then do so now. */ if ((fragP->tc_frag_data.thumb_mode & MODE_RECORDED) == 0) - { fragP->tc_frag_data.thumb_mode = thumb_mode | MODE_RECORDED; - /* Record a mapping symbol for alignment frags. We will delete this - later if the alignment ends up empty. */ - switch (fragP->fr_type) - { - case rs_align: - case rs_align_test: - case rs_fill: - mapping_state_2 (MAP_DATA, max_chars); - break; - case rs_align_code: - mapping_state_2 (thumb_mode ? MAP_THUMB : MAP_ARM, max_chars); - break; - default: - break; - } + /* Record a mapping symbol for alignment frags. We will delete this + later if the alignment ends up empty. */ + switch (fragP->fr_type) + { + case rs_align: + case rs_align_test: + case rs_fill: + mapping_state_2 (MAP_DATA, max_chars); + break; + case rs_align_code: + mapping_state_2 (thumb_mode ? MAP_THUMB : MAP_ARM, max_chars); + break; + default: + break; } } |