Replace private libelf with elfio

Change-Id: I4c630d78f7bf23dda85ec8480bb2790864405657
This commit is contained in:
Tao Sang
2020-07-29 09:41:02 -04:00
committato da Tao Sang
parent 70139d6e34
commit e986f5c820
113 ha cambiato i file con 6422 aggiunte e 20145 eliminazioni
+1 -4
Vedi File
@@ -24,9 +24,6 @@
#include "utils/options.hpp"
#include "rockernel.hpp"
#if defined(USE_COMGR_LIBRARY)
#include <gelf.h>
#endif // defined(USE_COMGR_LIBRARY)
#include "utils/bif_section_labels.hpp"
#include "amd_hsa_kernel_code.h"
@@ -112,7 +109,7 @@ bool Program::initClBinary(char* binaryIn, size_t size) {
}
// Both 32-bit and 64-bit are allowed!
if (!amd::isElfMagic(bin)) {
if (!amd::Elf::isElfMagic(bin)) {
// Invalid binary.
if (decryptedBin != nullptr) {
delete[] decryptedBin;