diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-08-09 19:34:00 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-08-09 19:34:00 +0000 |
commit | e120d9fbcd6e5768201d7263c6cc2c387b7a837f (patch) | |
tree | a315b9d340280bdef6ee361fa6b8a76c922b7f03 /gas/config/obj-coff.c | |
parent | a2acbf8d1255d444439c9d5cc79ce73dbcf4db4c (diff) | |
download | gdb-e120d9fbcd6e5768201d7263c6cc2c387b7a837f.zip gdb-e120d9fbcd6e5768201d7263c6cc2c387b7a837f.tar.gz gdb-e120d9fbcd6e5768201d7263c6cc2c387b7a837f.tar.bz2 |
* 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.
Diffstat (limited to 'gas/config/obj-coff.c')
-rw-r--r-- | gas/config/obj-coff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index b48900b..a5c04d2 100644 --- a/gas/config/obj-coff.c +++ b/gas/config/obj-coff.c @@ -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); |