Replace all uses of bfd_abs_section, bfd_com_section, bfd_und_section
[deliverable/binutils-gdb.git] / gas / config / tc-microblaze.c
index e1c4953d3a6376825f469e1f5ee607bf1144e028..440c88bd1e8e707d3798acd5900f72c7d4d7b18e 100644 (file)
@@ -1,6 +1,6 @@
 /* tc-microblaze.c -- Assemble code for Xilinx MicroBlaze
 
-   Copyright 2009, 2010 Free Software Foundation.
+   Copyright 2009, 2010, 2012 Free Software Foundation.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -807,11 +807,13 @@ md_assemble (char * str)
 
   /* Find the op code end.  */
   for (op_start = op_end = str;
-       * op_end && nlen < 20 && !is_end_of_line [(int)*op_end] && *op_end != ' ';
+       *op_end && !is_end_of_line[(unsigned char) *op_end] && *op_end != ' ';
        op_end++)
     {
       name[nlen] = op_start[nlen];
       nlen++;
+      if (nlen == sizeof (name) - 1)
+       break;
     }
 
   name [nlen] = 0;
@@ -2099,7 +2101,7 @@ md_estimate_size_before_relax (fragS * fragP,
          else if (streq (fragP->fr_opcode, str_microblaze_ro_anchor))
            {
               /* It is accessed using the small data read only anchor.  */
-              if ((S_GET_SEGMENT (fragP->fr_symbol) == &bfd_com_section)
+              if ((S_GET_SEGMENT (fragP->fr_symbol) == bfd_com_section_ptr)
                  || (S_GET_SEGMENT (fragP->fr_symbol) == sdata2_segment)
                  || (S_GET_SEGMENT (fragP->fr_symbol) == sbss2_segment)
                  || (! S_IS_DEFINED (fragP->fr_symbol)))
@@ -2123,7 +2125,7 @@ md_estimate_size_before_relax (fragS * fragP,
             }
          else if (streq (fragP->fr_opcode, str_microblaze_rw_anchor))
            {
-              if ((S_GET_SEGMENT (fragP->fr_symbol) == &bfd_com_section)
+              if ((S_GET_SEGMENT (fragP->fr_symbol) == bfd_com_section_ptr)
                  || (S_GET_SEGMENT (fragP->fr_symbol) == sdata_segment)
                  || (S_GET_SEGMENT (fragP->fr_symbol) == sbss_segment)
                  || (!S_IS_DEFINED (fragP->fr_symbol)))
This page took 0.025178 seconds and 4 git commands to generate.