From 0392b15920e7d408a99a91966d5b2f179c5266c6 Mon Sep 17 00:00:00 2001 From: schwab Date: Tue, 14 Aug 2007 10:44:12 +0000 Subject: [PATCH] * config/tc-ia64.c (tc_gen_reloc): Return NULL if relocation is unrepresentable. --- gas/config/tc-ia64.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.11.0