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] s390* subsy relocation error message.


Hi,
I stumbled the last time over the abort in md_apply_fix3 for s390
for the case that the fixup still has a subsy symbol. I replaced
it with an error message.

blue skies,
  Martin.

2003-01-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>

	* config/tc-s390.c (md_apply_fix3): Emit error message for relocations
	with a subsy symbol.

diff -urN src/gas/config/tc-s390.c src-s390/gas/config/tc-s390.c
--- src/gas/config/tc-s390.c	Fri Jan 17 16:26:55 2003
+++ src-s390/gas/config/tc-s390.c	Mon Jan 20 10:03:57 2003
@@ -1702,7 +1702,10 @@
   where = fixP->fx_frag->fr_literal + fixP->fx_where;
 
   if (fixP->fx_subsy != NULL)
-    abort ();
+    as_bad_where (fixP->fx_file, fixP->fx_line,
+		  "cannot emit relocation %s against subsy symbol %s",
+		  bfd_get_reloc_code_name (fixP->fx_r_type),
+		  S_GET_NAME (fixP->fx_subsy));
 
   if (fixP->fx_addsy != NULL)
     {


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