diff options
author | Renlin Li <renlin.li@arm.com> | 2015-05-06 12:18:19 +0100 |
---|---|---|
committer | Jiong Wang <jiong.wang@arm.com> | 2015-05-06 12:18:19 +0100 |
commit | 448eb63d72d960524ffe169f08419daf590b86d7 (patch) | |
tree | 51918dd9b742859ebaf4ab76353712d8d5832b18 /gas/config | |
parent | 03bbcd1c7a7b76888969861686788c34858f4f67 (diff) | |
download | gdb-448eb63d72d960524ffe169f08419daf590b86d7.zip gdb-448eb63d72d960524ffe169f08419daf590b86d7.tar.gz gdb-448eb63d72d960524ffe169f08419daf590b86d7.tar.bz2 |
[AArch64] Record instruction alignment for .inst directive
2015-05-06 Renlin Li <renlin.li@arm.com>
gas/
* config/tc-aarch64.c (mapping_state): Recording alignment before exit.
gas/testsuite/
* gas/aarch64/codealign_1.s: New.
* gas/aarch64/codealign_1.d: New.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-aarch64.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index 12012de..ae0e2d6 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -1460,17 +1460,17 @@ mapping_state (enum mstate state) { enum mstate mapstate = seg_info (now_seg)->tc_segment_info_data.mapstate; - if (mapstate == state) - /* The mapping symbol has already been emitted. - There is nothing else to do. */ - return; - if (state == MAP_INSN) /* AArch64 instructions require 4-byte alignment. When emitting instructions into any section, record the appropriate section alignment. */ record_alignment (now_seg, 2); + if (mapstate == state) + /* The mapping symbol has already been emitted. + There is nothing else to do. */ + return; + #define TRANSITION(from, to) (mapstate == (from) && state == (to)) if (TRANSITION (MAP_UNDEFINED, MAP_DATA) && !subseg_text_p (now_seg)) /* Emit MAP_DATA within executable section in order. Otherwise, it will be |