PATCH: Align ia64 GOT at 8 bytes
H. J. Lu
hjl@lucon.org
Fri Jul 25 06:30:00 GMT 2003
For ia64, the .got section is always aligned at 8 bytes since the GOT
entry size is always 8 bytes.
H.J.
---
2003-07-24 H.J. Lu <hongjiu.lu@intel.com>
* elfxx-ia64.c (get_got): Align the .got section at 8 bytes.
--- bfd/elfxx-ia64.c.got 2003-07-22 09:09:11.000000000 -0700
+++ bfd/elfxx-ia64.c 2003-07-24 23:20:16.000000000 -0700
@@ -1907,6 +1907,10 @@ get_got (abfd, info, ia64_info)
BFD_ASSERT (got);
ia64_info->got_sec = got;
+ /* The .got section is always aligned at 8 bytes. */
+ if (!bfd_set_section_alignment (abfd, got, 3))
+ return 0;
+
flags = bfd_get_section_flags (abfd, got);
bfd_set_section_flags (abfd, got, SEC_SMALL_DATA | flags);
}
More information about the Binutils
mailing list