summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2008-01-09 22:36:06 +0000
committerAlexandre Oliva <aoliva@redhat.com>2008-01-09 22:36:06 +0000
commit77291a9805ccbc0e54bc86c2b3d18522a8ba3fea (patch)
tree46705b3c16b6aa979169a12e539370fd198b241d
parentd10411c1a49967794bfbff8fc14565c803a66b90 (diff)
downloadbinutils-redhat-77291a9805ccbc0e54bc86c2b3d18522a8ba3fea.tar.gz
* config/tc-ia64.c (ia64_convert_frag): Zero-initialize room for
unwind personality function address.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-ia64.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 46f36be805..c4c64afc0e 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-09 Alexandre Oliva <aoliva@redhat.com>
+
+ * config/tc-ia64.c (ia64_convert_frag): Zero-initialize room for
+ unwind personality function address.
+
2008-01-09 Bob Wilson <bob.wilson@acm.org>
* dwarf2dbg.c (out_sleb128): Delete.
diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c
index 263374b7b4..3523a0fc3e 100644
--- a/gas/config/tc-ia64.c
+++ b/gas/config/tc-ia64.c
@@ -1,5 +1,5 @@
/* tc-ia64.c -- Assembler for the HP/Intel IA-64 architecture.
- Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
+ Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
Free Software Foundation, Inc.
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
@@ -3166,6 +3166,10 @@ ia64_convert_frag (fragS *frag)
if (pad != 0)
md_number_to_chars (frag->fr_literal + len + 8 - md.pointer_size + pad, 0,
md.pointer_size - pad);
+ /* Fill the unwind personality with zeros. */
+ if (frag->fr_offset)
+ md_number_to_chars (frag->fr_literal + size - md.pointer_size, 0,
+ md.pointer_size);
frag->fr_fix += size;
frag->fr_type = rs_fill;