PATCH: Fix GOT alignment for ia64
H. J. Lu
hjl@lucon.org
Fri Aug 22 23:37:00 GMT 2003
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))
More information about the Binutils
mailing list