public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* PATCH: Align ia64 GOT at 8 bytes
@ 2003-07-25  6:30 H. J. Lu
  0 siblings, 0 replies; only message in thread
From: H. J. Lu @ 2003-07-25  6:30 UTC (permalink / raw)
  To: binutils

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);
     }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-25  6:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-25  6:30 PATCH: Align ia64 GOT at 8 bytes H. J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).