summaryrefslogtreecommitdiffstats
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 09:39:50 +0900
commited09509e0b6950bf4f865a21715e73d99bce7106 (patch)
tree057f741b0a1f36e145fef6b08167104f5b82c3a9
parentd2aac00a4adc3124ad33658acf2cddc2d938e89a (diff)
downloadlibr-ed09509e0b6950bf4f865a21715e73d99bce7106.tar.gz
libr-ed09509e0b6950bf4f865a21715e73d99bce7106.zip
Fixed generation of corrupted executables when editing sections. This resolves issue #4.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-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))