Fixed generation of corrupted executables when editing sections. This resolves issue #4.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit ed09509e0b)
r14.0.x
Michele Calgaro 4 years ago
parent 35f271f1f8
commit 6e1c337778
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -352,11 +352,6 @@ int build_output(libr_file *file_handle)
return false;
}
free(buffer);
if(!bfd_copy_private_section_data(ihandle, iscn, ohandle, oscn))
{
printf("failed to copy private section data: %s\n", bfd_errmsg(bfd_get_error()));
return false;
}
}
}
if(!bfd_copy_private_bfd_data(ihandle, ohandle))

Loading…
Cancel
Save