Remove need to clear obj_coff_keep_syms in coff object_p
authorAlan Modra <amodra@gmail.com>
Thu, 30 Jan 2020 06:36:35 +0000 (17:06 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 30 Jan 2020 06:36:35 +0000 (17:06 +1030)
commit72913831fc585ffa2bed866fb32532513ec10f8e
tree271d17d778fe2bafdae039815c5245aa93f34f35
parent03fe9cfb9834c9552348a4967c0ca53116b6d2b1
Remove need to clear obj_coff_keep_syms in coff object_p

* coffgen.c (coff_real_object_p): Don't clear obj_coff_keep_syms
or obj_coff_keep_strings here.
(coff_get_normalized_symtab): Free external syms directly.
* xcofflink.c (xcoff_link_input_bfd): Restore obj_coff_keep_syms
on error exit path.
bfd/ChangeLog
bfd/coffgen.c
bfd/xcofflink.c