From fcee3e24c26ea3057c7caa423dd6c9276aaba416 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 12 Feb 1996 05:12:40 +0000 Subject: [PATCH] * config/tc-sh.c (sh_do_align): Align to a 2 byte boundary before inserting nop instructions. PR 8974. --- gas/ChangeLog | 5 +++++ gas/config/tc-sh.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index f02fea1..64e8d1c 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +Mon Feb 12 00:12:13 1996 Ian Lance Taylor + + * config/tc-sh.c (sh_do_align): Align to a 2 byte boundary before + inserting nop instructions. + Fri Feb 9 10:54:19 1996 Ian Lance Taylor * config/te-aux.h: Change include of aux.h to aux-coff.h. 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 -- 2.7.4