Add 'Chnages in 2.13' to NEWS files.
[deliverable/binutils-gdb.git] / bfd / coff-rs6000.c
index 7cd26b88ffd4797d1fef60ca0721e418ec9f717e..025372d11633881b0f279219251921f38286d024 100644 (file)
@@ -237,7 +237,7 @@ _bfd_xcoff_mkobject (abfd)
   xcoff_data (abfd)->debug_indices = NULL;
 
   /* text section alignment is different than the default */
-  /* xcoff_data (abfd)->text_align_power = 5; */
+  bfd_xcoff_text_align_power (abfd) = 2;
 
   return true;
 }
@@ -278,8 +278,8 @@ _bfd_xcoff_copy_private_bfd_data (ibfd, obfd)
       else
        ox->snentry = sec->output_section->target_index;
     }
-  ox->text_align_power = ix->text_align_power;
-  ox->data_align_power = ix->data_align_power;
+  bfd_xcoff_text_align_power (obfd) = bfd_xcoff_text_align_power (ibfd);
+  bfd_xcoff_data_align_power (obfd) = bfd_xcoff_data_align_power (ibfd);
   ox->modtype = ix->modtype;
   ox->cputype = ix->cputype;
   ox->maxdata = ix->maxdata;
@@ -1730,7 +1730,6 @@ do_shared_object_padding (out_bfd, in_bfd, offset, ar_header_size)
       int text_align_power;
 
       text_align_power = bfd_xcoff_text_align_power (in_bfd);
-      BFD_ASSERT (2 < text_align_power);
 
       pad = 1 << text_align_power;
       pad -= (*offset + ar_header_size) & (pad - 1);
@@ -3753,7 +3752,7 @@ xcoff_generate_rtinit  (abfd, init, fini, rtld)
     {
       string_table_size += 4;
       string_table = (bfd_byte *) bfd_zmalloc (string_table_size);
-      if (string_table_size == NULL)
+      if (string_table == NULL)
        return false;
 
       val = string_table_size;
This page took 0.023361 seconds and 4 git commands to generate.