diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2003-08-01 22:46:16 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2003-08-01 22:46:16 +0000 |
commit | 8651fcf94c685b405c3905c280067d06ac709385 (patch) | |
tree | 20887b2610c31c9673631901ac1f982533f62798 /bfd/elfxx-ia64.c | |
parent | 37cd262974f51c4d37475695b703753043f008f4 (diff) | |
download | gdb-8651fcf94c685b405c3905c280067d06ac709385.zip gdb-8651fcf94c685b405c3905c280067d06ac709385.tar.gz gdb-8651fcf94c685b405c3905c280067d06ac709385.tar.bz2 |
2003-08-01 H.J. Lu <hongjiu.lu@intel.com>
* elfxx-ia64.c (get_got): Align the .got section at 8 bytes.
Diffstat (limited to 'bfd/elfxx-ia64.c')
-rw-r--r-- | bfd/elfxx-ia64.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c index 0a732f4..27ffddd 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); } |