]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* elfxx-mips.c: Revert .got alignment to 2**4.
authorThiemo Seufer <ths@networkno.de>
Fri, 27 Jun 2003 07:32:33 +0000 (07:32 +0000)
committerThiemo Seufer <ths@networkno.de>
Fri, 27 Jun 2003 07:32:33 +0000 (07:32 +0000)
bfd/ChangeLog
bfd/elfxx-mips.c

index 319ac9a67cb062c451aefdbedb49bf85d2d3a0cb..6930e04195868896be0cb9472129d036720b0f03 100644 (file)
@@ -1,3 +1,7 @@
+2003-06-27  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * elfxx-mips.c: Revert .got alignment to 2**4.
+
 2003-06-27  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
 
        * elf32-mips.c: Fix addend for _gp_disp special symbol.
index 96f80ec015c59f77692d9e2f972ca4c6bf32e53f..478a0dbed8791f90be3c67aa4dd67b35d96efc2a 100644 (file)
@@ -2870,10 +2870,12 @@ mips_elf_create_got_section (abfd, info, maybe_exclude)
   if (maybe_exclude)
     flags |= SEC_EXCLUDE;
 
+  /* We have to use an alignment of 2**4 here because this is hardcoded
+     in the function stub generation and in the linker script.  */
   s = bfd_make_section (abfd, ".got");
   if (s == NULL
       || ! bfd_set_section_flags (abfd, s, flags)
-      || ! bfd_set_section_alignment (abfd, s, MIPS_ELF_LOG_FILE_ALIGN (abfd)))
+      || ! bfd_set_section_alignment (abfd, s, 4))
     return FALSE;
 
   /* Define the symbol _GLOBAL_OFFSET_TABLE_.  We don't do this in the