summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2003-06-27 07:32:33 +0000
committerThiemo Seufer <ths@networkno.de>2003-06-27 07:32:33 +0000
commit58a3d934bbe397a2e693c4b5a16165ec6e6fe2ca (patch)
tree361a38e7d1c310489919d8466b8cbbe5a18a3839
parent732e40fa0c2a4bc09819f0adb1f9eedf95c55380 (diff)
downloadbinutils-redhat-58a3d934bbe397a2e693c4b5a16165ec6e6fe2ca.tar.gz
* elfxx-mips.c: Revert .got alignment to 2**4.
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elfxx-mips.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 319ac9a67c..6930e04195 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,9 @@
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.
2003-06-27 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 96f80ec015..478a0dbed8 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -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