diff options
Diffstat (limited to 'gas/write.c')
-rw-r--r-- | gas/write.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/write.c b/gas/write.c index cd74c702e9f..3a492343838 100644 --- a/gas/write.c +++ b/gas/write.c @@ -1372,7 +1372,8 @@ subsegs_finish () any alignment is meaningless, and, moreover, will look weird if we are generating a listing. */ frag_align (had_errors () ? 0 : SUB_SEGMENT_ALIGN (now_seg), - NOP_OPCODE, 0); + subseg_text_p (now_seg) ? NOP_OPCODE : 0, + 0); /* frag_align will have left a new frag. Use this last frag for an empty ".fill". |