aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-mips.c
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
commit72b4917c07ca0e1e2610c32543a2662dd2048f91 (patch)
treecc97bdfb8f0e484e639870f80cd5d239bdc43547 /bfd/elfxx-mips.c
parent917090909e9004cb0a7f084e73dd8d3b407b1cc4 (diff)
downloadgdb-72b4917c07ca0e1e2610c32543a2662dd2048f91.zip
gdb-72b4917c07ca0e1e2610c32543a2662dd2048f91.tar.gz
gdb-72b4917c07ca0e1e2610c32543a2662dd2048f91.tar.bz2
* elfxx-mips.c: Revert .got alignment to 2**4.
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r--bfd/elfxx-mips.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 96f80ec..478a0db 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