diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-06-12 16:49:51 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-06-12 16:49:51 +0000 |
commit | b9e57a387a6bdc15fd8bf477dc4d45131f0307d6 (patch) | |
tree | 83767656ddf103d5231f1d4348bb71e6f8401955 /gas/config/tc-sh.c | |
parent | d84feeaca53698f5e014813e923abe6807e13f22 (diff) | |
download | gdb-b9e57a387a6bdc15fd8bf477dc4d45131f0307d6.zip gdb-b9e57a387a6bdc15fd8bf477dc4d45131f0307d6.tar.gz gdb-b9e57a387a6bdc15fd8bf477dc4d45131f0307d6.tar.bz2 |
* 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.
Diffstat (limited to 'gas/config/tc-sh.c')
-rw-r--r-- | gas/config/tc-sh.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c index e21962c..2752d03 100644 --- a/gas/config/tc-sh.c +++ b/gas/config/tc-sh.c @@ -2192,12 +2192,7 @@ sh_do_align (n, fill, len, max) int max; { if (fill == NULL -#ifdef BFD_ASSEMBLER - && (now_seg->flags & SEC_CODE) != 0 -#else - && now_seg != data_section - && now_seg != bss_section -#endif + && subseg_text_p (now_seg) && n > 1) { static const unsigned char big_nop_pattern[] = { 0x00, 0x09 }; |