Prevent NULL pointer dereference.
This commit is contained in:
parent
e40eccb4fb
commit
b32b5d6e64
2 changed files with 6 additions and 1 deletions
|
@ -3089,7 +3089,7 @@ elf32_hppa_set_gp (abfd, info)
|
|||
}
|
||||
}
|
||||
|
||||
if (sec != NULL)
|
||||
if (sec != NULL && sec->output_section != NULL)
|
||||
gp_val += sec->output_section->vma + sec->output_offset;
|
||||
|
||||
elf_gp (abfd) = gp_val;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue