+2005-12-13 DJ Delorie <dj@redhat.com>
+
+ * config/tc-m32c.c (m32c_md_end): Only pad code sections.
+
2005-12-12 Paul Brook <paul@codesourcery.com>
* config/tc-arm.c (do_branch): Generate EABI branch relocations.
#include "libbfd.h"
#include "libiberty.h"
#include "safe-ctype.h"
+#include "bfd.h"
/* Structure to hold all of the different components
describing an individual instruction. */
{
int i, n_nops;
- /* Pad with nops for objdump. */
- n_nops = (32 - ((insn_size) % 32)) / 8;
- for (i = 1; i <= n_nops; i++)
- md_assemble ("nop");
+ if (bfd_get_section_flags (stdoutput, now_seg) & SEC_CODE)
+ {
+ /* Pad with nops for objdump. */
+ n_nops = (32 - ((insn_size) % 32)) / 8;
+ for (i = 1; i <= n_nops; i++)
+ md_assemble ("nop");
+ }
}
void