From 417c21b7ba90d32999afb08b4ef95069728b31eb Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Wed, 9 Jan 2008 22:36:06 +0000 Subject: * config/tc-ia64.c (ia64_convert_frag): Zero-initialize room for unwind personality function address. --- gas/config/tc-ia64.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gas/config') diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c index 263374b..3523a0f 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 @@ -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; -- cgit v1.1