aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2007-08-14 10:44:12 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2007-08-14 10:44:12 +0000
commitcf73852866eaa9e1a6ce7ffa74e81213c7711426 (patch)
tree775f9b095cc9c1dc7c1a457ad27d9fdadc30f523 /gas/config
parente14a792bcf5d14059f9d991873b94083c9a1bc3b (diff)
downloadgdb-cf73852866eaa9e1a6ce7ffa74e81213c7711426.zip
gdb-cf73852866eaa9e1a6ce7ffa74e81213c7711426.tar.gz
gdb-cf73852866eaa9e1a6ce7ffa74e81213c7711426.tar.bz2
* config/tc-ia64.c (tc_gen_reloc): Return NULL if relocation is
unrepresentable.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-ia64.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c
index b42c336..d6fcb2c 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;
}