mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-28 14:30:48 +00:00
* cgen.c (gas_cgen_parse_operand): Guard against NULL pointers.
This commit is contained in:
parent
9f1036c17f
commit
77ca132567
@ -1,3 +1,7 @@
|
||||
2009-05-13 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* cgen.c (gas_cgen_parse_operand): Guard against NULL pointers.
|
||||
|
||||
2009-05-13 Andrew Jenner <andrew@codesourcery.com>
|
||||
|
||||
* config/tc-arm.c: Move as.h to start of file.
|
||||
|
@ -452,9 +452,10 @@ gas_cgen_parse_operand (cd, want, strP, opindex, opinfo, resultP, valueP)
|
||||
if (exp.X_op == O_symbol
|
||||
&& reloc_type == BFD_RELOC_RELC
|
||||
&& exp.X_add_symbol->sy_value.X_op == O_constant
|
||||
&& exp.X_add_symbol->bsym->section != expr_section
|
||||
&& exp.X_add_symbol->bsym->section != absolute_section
|
||||
&& exp.X_add_symbol->bsym->section != undefined_section)
|
||||
&& (!exp.X_add_symbol->bsym
|
||||
|| (exp.X_add_symbol->bsym->section != expr_section
|
||||
&& exp.X_add_symbol->bsym->section != absolute_section
|
||||
&& exp.X_add_symbol->bsym->section != undefined_section)))
|
||||
{
|
||||
/* Local labels will have been (eagerly) turned into constants
|
||||
by now, due to the inappropriately deep insight of the
|
||||
|
Loading…
Reference in New Issue
Block a user