This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] s390* subsy relocation error message.
- From: Martin Schwidefsky <schwidefsky at de dot ibm dot com>
- To: binutils at sources dot redhat dot com
- Date: Mon, 20 Jan 2003 11:17:13 +0100
- Subject: [PATCH] s390* subsy relocation error message.
- Organization: IBM Deutschland GmbH
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)
{