summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-07-21 09:39:50 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-07-21 17:33:03 +0900
commit6e1c33777844a924836e6a2bb72b738e8b743f51 (patch)
treef0a2c966ae1e69727b130e3cf126c77869e44ef1 /src
parent35f271f1f87ed0d3f8fae12c42496881f6a241d5 (diff)
downloadlibr-6e1c33777844a924836e6a2bb72b738e8b743f51.tar.gz
libr-6e1c33777844a924836e6a2bb72b738e8b743f51.zip
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 ed09509e0b6950bf4f865a21715e73d99bce7106)
Diffstat (limited to 'src')
-rw-r--r--src/libr-bfd.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libr-bfd.c b/src/libr-bfd.c
index 61e59e4..53e8aee 100644
--- a/src/libr-bfd.c
+++ b/src/libr-bfd.c
@@ -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))