aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-02-12 05:12:40 +0000
committerIan Lance Taylor <ian@airs.com>1996-02-12 05:12:40 +0000
commitfcee3e24c26ea3057c7caa423dd6c9276aaba416 (patch)
treed365b56a1a13521d556b07bc32b97a9e89a6f3ee /gas/config
parentbe255497be3322e1dfea32cfb2176a4684be8069 (diff)
downloadgdb-fcee3e24c26ea3057c7caa423dd6c9276aaba416.zip
gdb-fcee3e24c26ea3057c7caa423dd6c9276aaba416.tar.gz
gdb-fcee3e24c26ea3057c7caa423dd6c9276aaba416.tar.bz2
* config/tc-sh.c (sh_do_align): Align to a 2 byte boundary before
inserting nop instructions. PR 8974.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-sh.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c
index 66a789b..34e7548 100644
--- a/gas/config/tc-sh.c
+++ b/gas/config/tc-sh.c
@@ -1712,6 +1712,9 @@ sh_do_align (n, fill, len)
static const unsigned char big_nop_pattern[] = { 0x00, 0x09 };
static const unsigned char little_nop_pattern[] = { 0x09, 0x00 };
+ /* First align to a 2 byte boundary, in case there is an odd
+ .byte. */
+ frag_align (2, 0);
if (target_big_endian)
frag_align_pattern (n, big_nop_pattern, sizeof big_nop_pattern);
else