This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Align ia64 GOT at 8 bytes
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Thu, 24 Jul 2003 23:30:28 -0700
- Subject: PATCH: Align ia64 GOT at 8 bytes
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);
}