mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 10:00:51 +00:00
Merge init_private_section_data with copy_private_section_data
init_private_section_data is used by the linker and is a special case of copy_private_section_data that copies a reduced set of section data from input to output. Merge the two functions, adding a link_info param to copy_private_section_data and remove init_private_section_data.
This commit is contained in:
@@ -2874,7 +2874,7 @@ lang_add_section (lang_statement_list_type *ptr,
|
||||
/* This must happen after flags have been updated. The output
|
||||
section may have been created before we saw its first input
|
||||
section, eg. for a data statement. */
|
||||
bfd_init_private_section_data (section->owner, section,
|
||||
bfd_copy_private_section_data (section->owner, section,
|
||||
link_info.output_bfd,
|
||||
output->bfd_section,
|
||||
&link_info);
|
||||
@@ -10494,7 +10494,7 @@ setup_section (bfd *ibfd, sec_ptr isection, void *p)
|
||||
|
||||
/* Allow the BFD backend to copy any private data it understands
|
||||
from the input section to the output section. */
|
||||
if (!bfd_copy_private_section_data (ibfd, isection, obfd, osection))
|
||||
if (!bfd_copy_private_section_data (ibfd, isection, obfd, osection, NULL))
|
||||
{
|
||||
err = _("failed to copy private data");
|
||||
goto loser;
|
||||
|
||||
Reference in New Issue
Block a user