From: schwab Date: Tue, 14 Aug 2007 10:44:12 +0000 (+0000) Subject: * config/tc-ia64.c (tc_gen_reloc): Return NULL if relocation is X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=0392b15920e7d408a99a91966d5b2f179c5266c6;p=pf3gnuchains%2Fpf3gnuchains3x.git * config/tc-ia64.c (tc_gen_reloc): Return NULL if relocation is unrepresentable. --- diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c index b42c336244..d6fcb2cc7a 100644 --- a/gas/config/tc-ia64.c +++ b/gas/config/tc-ia64.c @@ -11678,6 +11678,8 @@ tc_gen_reloc (sec, fixp) as_bad_where (fixp->fx_file, fixp->fx_line, "Cannot represent %s relocation in object file", bfd_get_reloc_code_name (fixp->fx_r_type)); + free (reloc); + return NULL; } return reloc; }