From: H.J. Lu Date: Fri, 1 Aug 2003 22:46:16 +0000 (+0000) Subject: 2003-08-01 H.J. Lu X-Git-Tag: ezannoni_pie-20030916-branchpoint~541 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8651fcf94c685b405c3905c280067d06ac709385;p=thirdparty%2Fbinutils-gdb.git 2003-08-01 H.J. Lu * elfxx-ia64.c (get_got): Align the .got section at 8 bytes. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 2ce27f5fa48..cf9c4536838 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2003-08-01 H.J. Lu + + * elfxx-ia64.c (get_got): Align the .got section at 8 bytes. + 2003-08-01 H.J. Lu * elfxx-ia64.c (elfNN_ia64_finish_dynamic_symbol): Use diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c index 0a732f4b607..27ffdddeaec 100644 --- a/bfd/elfxx-ia64.c +++ b/bfd/elfxx-ia64.c @@ -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); }