SWDEV-502579 Revert elf symbols patches (#861)

* Revert "Fix undefined symbol at runtime with newer versions of LLVM (#791)"

This reverts commit b617e8feb6.

* Revert "SWDEV-502579 - Remove duplicated symbols (#21)"

This reverts commit 2296162578.

Revert them because ELF symbols will be added into comgr header.

[ROCm/clr commit: 35c192f1af]
Αυτή η υποβολή περιλαμβάνεται σε:
Sang, Tao
2025-08-13 10:46:39 -04:00
υποβλήθηκε από GitHub
γονέας 33085dd232
υποβολή 03338bc767
7 αρχεία άλλαξαν με 183 προσθήκες και 31 διαγραφές
@@ -21,16 +21,13 @@ THE SOFTWARE.
*/
#include "hip/hip_runtime_api.h"
#include "llvm/BinaryFormat/ELF.h"
#include "hip_fatbin.hpp"
#include "hip_global.hpp"
#include <unordered_map>
#include "hip_code_object.hpp"
#include "hip_platform.hpp"
#include "comgrctx.hpp"
#include "amd_hsa_elf.hpp"
namespace hip {
namespace comgr_helper {
@@ -251,7 +248,7 @@ static bool IsCodeObjectCompressed(const void* image) {
static bool IsCodeObjectElf(const void* image) {
const amd::Elf64_Ehdr* ehdr = reinterpret_cast<const amd::Elf64_Ehdr*>(image);
return ehdr->e_machine == EM_AMDGPU && ehdr->e_ident[EI_OSABI] == llvm::ELF::ELFOSABI_AMDGPU_HSA;
return ehdr->e_machine == EM_AMDGPU && ehdr->e_ident[EI_OSABI] == ELFOSABI_AMDGPU_HSA;
}
static bool UncompressAndPopulateCodeObject(