[PATCH] ia64: eliminate internal error

Jan Beulich JBeulich@novell.com
Mon May 23 09:17:00 GMT 2005


Preventing an internal error in case a tag was referenced but not defined.

Built and tested on ia64-unknown-linux-gnu.

Jan

gas/
2005-05-23  Jan Beulich  <jbeulich@novell.com>

	* config/tc-ia64.c (ia64_gen_real_reloc_type): Also handle
	BFD_RELOC_UNUSED when determining the width of the reloc.

--- /home/jbeulich/src/binutils/mainline/2005-05-18/gas/config/tc-ia64.c	2005-05-09 08:31:38.000000000 +0200
+++ 2005-05-18/gas/config/tc-ia64.c	2005-05-20 17:11:14.812836238 +0200
@@ -11254,6 +11189,7 @@ ia64_gen_real_reloc_type (sym, r_type)
 	case BFD_RELOC_IA64_DIR32LSB: width = 32; suffix = "LSB"; break;
 	case BFD_RELOC_IA64_DIR64MSB: width = 64; suffix = "MSB"; break;
 	case BFD_RELOC_IA64_DIR64LSB: width = 64; suffix = "LSB"; break;
+	case BFD_RELOC_UNUSED:        width = 13; break;
 	case BFD_RELOC_IA64_IMM14:    width = 14; break;
 	case BFD_RELOC_IA64_IMM22:    width = 22; break;
 	case BFD_RELOC_IA64_IMM64:    width = 64; suffix = "I"; break;


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: binutils-mainline-ia64-tag-abort.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20050523/ecd1110a/attachment.ksh>


More information about the Binutils mailing list