diff options
author | Ian Lance Taylor <ian@airs.com> | 1993-10-11 21:40:10 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1993-10-11 21:40:10 +0000 |
commit | f37449aaf3d3e3f611a02a7fa7a4642cbc47e658 (patch) | |
tree | ec110296f814ad031c0e69c32794fb35bb62cecd /gas/write.c | |
parent | a7853216049cb473f62ff8196151829edef76ad8 (diff) | |
download | gdb-f37449aaf3d3e3f611a02a7fa7a4642cbc47e658.zip gdb-f37449aaf3d3e3f611a02a7fa7a4642cbc47e658.tar.gz gdb-f37449aaf3d3e3f611a02a7fa7a4642cbc47e658.tar.bz2 |
* write.c (write_contents): Don't crash if seginfo is NULL.
* config/obj-ecoff.c (ecoff_frob_file): Write out register masks
by modifying .reginfo section, not by directly modifying BFD
backend data.
Diffstat (limited to 'gas/write.c')
-rw-r--r-- | gas/write.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/write.c b/gas/write.c index ea0349c..38771b4 100644 --- a/gas/write.c +++ b/gas/write.c @@ -718,7 +718,8 @@ write_contents (abfd, sec, xxx) fragS *f; /* Write out the frags. */ - if (! (bfd_get_section_flags (abfd, sec) & SEC_HAS_CONTENTS)) + if (seginfo == NULL + || ! (bfd_get_section_flags (abfd, sec) & SEC_HAS_CONTENTS)) return; for (f = seginfo->frchainP->frch_root; |