This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] ia64: eliminate internal error


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;


Attachment: binutils-mainline-ia64-tag-abort.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]