mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-19 01:19:41 +08:00
use copy_private_symbol_data in objcopy
osympp appearing twice here is not a bug. PR 14493 * objcopy.c (copy_object): Run the symbols through bfd_copy_private_symbol_data.
This commit is contained in:
@@ -3380,6 +3380,13 @@ copy_object (bfd *ibfd, bfd *obfd, const bfd_arch_info_type *input_arch)
|
||||
symcount = filter_symbols (ibfd, obfd, osympp, isympp, symcount);
|
||||
}
|
||||
|
||||
for (i = 0; i < symcount; i++)
|
||||
if (!bfd_copy_private_symbol_data (ibfd, osympp[i], obfd, osympp[i]))
|
||||
{
|
||||
status = 1;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (dhandle != NULL)
|
||||
{
|
||||
bool res;
|
||||
|
||||
Reference in New Issue
Block a user