* parse.c (write_exp_msymbol): Check SYMBOL_BFD_SECTION before
	dereferencing it.
This commit is contained in:
Daniel Jacobowitz
2006-11-18 23:54:32 +00:00
parent 7f762562fe
commit aef9c3b3f5
2 changed files with 7 additions and 1 deletions

View File

@@ -408,7 +408,8 @@ write_exp_msymbol (struct minimal_symbol *msymbol,
write_exp_elt_opcode (OP_LONG);
if (SYMBOL_BFD_SECTION (msymbol)->flags & SEC_THREAD_LOCAL)
if (SYMBOL_BFD_SECTION (msymbol)
&& SYMBOL_BFD_SECTION (msymbol)->flags & SEC_THREAD_LOCAL)
{
bfd *bfd = SYMBOL_BFD_SECTION (msymbol)->owner;
struct objfile *ofp;