* config/tc-m32c.c (m32c_md_end): Only pad code sections.
authorDJ Delorie <dj@redhat.com>
Wed, 14 Dec 2005 02:27:34 +0000 (02:27 +0000)
committerDJ Delorie <dj@redhat.com>
Wed, 14 Dec 2005 02:27:34 +0000 (02:27 +0000)
gas/ChangeLog
gas/config/tc-m32c.c

index 6f310eaa4e64c0376a6f35eec607c562e034a1df..3f2897af6d4dec993076365b0536911f06bd3a9d 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 8dca2480d41774c3a04c8d53191560d11a9f5e14..8f4f50225ed4ccccd0007eb1c0908ac990c34c7a 100644 (file)
@@ -31,6 +31,7 @@
 #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.  */
@@ -180,10 +181,13 @@ m32c_md_end (void)
 {
   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
This page took 0.036576 seconds and 4 git commands to generate.