Fix a potential use of an uninitialised variable error in gold.
* target-reloc.h (issue_discarded_error): Initialise the key_symndx variable.
This commit is contained in:
parent
4bf05d4a90
commit
fb58f5e928
@ -1,3 +1,8 @@
|
||||
2020-06-24 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* target-reloc.h (issue_discarded_error): Initialise the
|
||||
key_symndx variable.
|
||||
|
||||
2020-06-23 Roland McGrath <mcgrathr@google.com>
|
||||
|
||||
PR 22843
|
||||
|
@ -258,7 +258,7 @@ issue_discarded_error(
|
||||
&is_ordinary);
|
||||
if (orig_shndx != elfcpp::SHN_UNDEF)
|
||||
{
|
||||
unsigned int key_symndx;
|
||||
unsigned int key_symndx = 0;
|
||||
Relobj* kept_obj = object->find_kept_section_object(orig_shndx,
|
||||
&key_symndx);
|
||||
if (key_symndx != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user