mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
2006-11-18 Pedro Alves <pedro_alves@portugalmail.pt>
* parse.c (write_exp_msymbol): Check SYMBOL_BFD_SECTION before dereferencing it.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user