forked from Imagelibrary/binutils-gdb
* subsegs.c (subseg_text_p): New function.
* as.h (subseg_text_p): Declare. * read.c (do_align): Use subseg_text_p to set the default fill. * write.c (subsegs_finish): Likewise. * config/obj-coff.c (write_object_file): Likewise. * config/tc-i386.h (md_maybe_text): Don't define. (md_do_align): Use subseg_text_p to set the default fill. * config/tc-m32r.c (m32r_do_align): Likewise. * config/tc-sh.c (sh_do_align): Likewise. * config/tc-sparc.h (md_do_align): Likewise.
This commit is contained in:
@@ -245,7 +245,7 @@ m32r_do_align (n, fill, len, max)
|
||||
{
|
||||
/* Only do this if the fill pattern wasn't specified. */
|
||||
if (fill == NULL
|
||||
&& (now_seg->flags & SEC_CODE) != 0
|
||||
&& subseg_text_p (now_seg)
|
||||
/* Only do this special handling if aligning to at least a
|
||||
4 byte boundary. */
|
||||
&& n > 1
|
||||
|
||||
Reference in New Issue
Block a user