From 394cb00bdec6d6e19e5df6cfc697ee7682f6686d Mon Sep 17 00:00:00 2001 From: Devynck Date: Wed, 3 Mar 2021 22:11:50 +0100 Subject: [PATCH] fix bug of build http://vps675121.ovh.net/make.png --- src/CHexFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CHexFile.cpp b/src/CHexFile.cpp index 0487db2..66b723d 100644 --- a/src/CHexFile.cpp +++ b/src/CHexFile.cpp @@ -47,7 +47,7 @@ void CHexFile::save(uint8_t *buffer, int size) { } // set format to object - if (!bfd_set_format(outputFile, bfd_object)) { + if (!bfd_set_section_size(section, size)) { throw FileException("Could not write to '" + path + "'.\n" + bfd_errmsg(bfd_get_error())); }