* write.c (adjust_reloc_syms): Check that symbol is not NULL

before checking sy_mri_common.
	(fixup_segment): Likewise.
	* config/obj-coff.c (fixup_segment): Likewise.
This commit is contained in:
Ian Lance Taylor
1995-08-09 19:34:00 +00:00
parent a2acbf8d12
commit e120d9fbcd
2 changed files with 5 additions and 3 deletions

View File

@@ -3641,7 +3641,8 @@ fixup_segment (segP, this_segment_type)
add_number = fixP->fx_offset;
pcrel = fixP->fx_pcrel;
if (add_symbolP->sy_mri_common)
if (add_symbolP != NULL
&& add_symbolP->sy_mri_common)
{
know (add_symbolP->sy_value.X_op == O_symbol);
add_number += S_GET_VALUE (add_symbolP);