From cf73852866eaa9e1a6ce7ffa74e81213c7711426 Mon Sep 17 00:00:00 2001 From: Andreas 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/ChangeLog | 5 +++++ gas/config/tc-ia64.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index 7504cf4..72329b3 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2007-08-14 Andreas Schwab + + * config/tc-ia64.c (tc_gen_reloc): Return NULL if relocation is + unrepresentable. + 2007-08-12 Matthias Klose * doc/Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Include 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; } -- 2.7.4