mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 10:00:51 +00:00
Re: elf_backend_finish_dynamic_symbol returning false
I didn't examine ld testsuite logs properly after cf95b909e2.
Replacing one of the "return false" with BFD_ASSERT in
finish_dynamic_symbol was wrong as it causes segmentation faults on
testcases expected to fail. Revert those changes and instead make
a bfd_final_link failure noisy.
This commit is contained in:
@@ -549,13 +549,9 @@ ldwrite (void)
|
||||
split_sections (link_info.output_bfd, &link_info);
|
||||
if (!bfd_final_link (link_info.output_bfd, &link_info))
|
||||
{
|
||||
/* If there was an error recorded, print it out. Otherwise assume
|
||||
an appropriate error message like unknown symbol was printed
|
||||
out. */
|
||||
|
||||
if (bfd_get_error () != bfd_error_no_error)
|
||||
einfo (_("%F%P: final link failed: %E\n"));
|
||||
else
|
||||
xexit (1);
|
||||
einfo (_("%F%P: final link failed\n"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user