aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-05-28 17:52:42 +0930
committerAlan Modra <amodra@gmail.com>2019-05-28 17:57:51 +0930
commit0f4a61b42002f568473f821f00dd240413beadd0 (patch)
tree84ac5fbab6542d7264b76a2292390e0968cf3c01 /bfd
parent94667ab146a0c94f87f3d9aa7d1c819663b28338 (diff)
downloadgdb-0f4a61b42002f568473f821f00dd240413beadd0.zip
gdb-0f4a61b42002f568473f821f00dd240413beadd0.tar.gz
gdb-0f4a61b42002f568473f821f00dd240413beadd0.tar.bz2
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.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/cofflink.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 464203f..09ba27a 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,6 +1,12 @@
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
* elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Don't
attempt to set sh_entsize for excluded PLT section.
diff --git a/bfd/cofflink.c b/bfd/cofflink.c
index ac07d05..5e02760 100644
--- a/bfd/cofflink.c
+++ b/bfd/cofflink.c
@@ -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. */