mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
COFF linker segmentation faults
A plugin can change the element, so call the generic bfd_link_add_symbols. PR 24596 * cofflink.c (coff_link_check_archive_element): Don't assume element is a coff object file after calling add_archive_element.
This commit is contained in:
parent
94667ab146
commit
0f4a61b420
@ -1,3 +1,9 @@
|
||||
2019-05-28 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR 24596
|
||||
* cofflink.c (coff_link_check_archive_element): Don't assume
|
||||
element is a coff object file after calling add_archive_element.
|
||||
|
||||
2019-05-28 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR 24596
|
||||
|
@ -221,7 +221,7 @@ coff_link_check_archive_element (bfd *abfd,
|
||||
return TRUE;
|
||||
*pneeded = TRUE;
|
||||
|
||||
return coff_link_add_object_symbols (abfd, info);
|
||||
return bfd_link_add_symbols (abfd, info);
|
||||
}
|
||||
|
||||
/* Add all the symbols from an object file to the hash table. */
|
||||
|
Loading…
Reference in New Issue
Block a user