This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Fix GOT alignment for ia64
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Fri, 22 Aug 2003 15:23:00 -0700
- Subject: PATCH: Fix GOT alignment for ia64
I missed this one last time. I will check it in shortly.
H.J.
----
2003-08-21 H.J. Lu <hongjiu.lu@intel.com>
* elfxx-ia64.c (elfNN_ia64_create_dynamic_sections): Align the
.got section at 8 bytes.
--- bfd/elfxx-ia64.c.got 2003-08-21 10:26:30.000000000 -0700
+++ bfd/elfxx-ia64.c 2003-08-22 15:06:46.000000000 -0700
@@ -1791,6 +1791,8 @@ elfNN_ia64_create_dynamic_sections (abfd
{
flagword flags = bfd_get_section_flags (abfd, ia64_info->got_sec);
bfd_set_section_flags (abfd, ia64_info->got_sec, SEC_SMALL_DATA | flags);
+ /* The .got section is always aligned at 8 bytes. */
+ bfd_set_section_alignment (abfd, ia64_info->got_sec, 3);
}
if (!get_pltoff (abfd, info, ia64_info))