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]
Bu işleme şunda yer alıyor:
Sang, Tao authored and GitHub committed 2025-08-13 10:46:39 -04:00
1 ebeveyn 33085dd232
işleme 03338bc767
7 files changed
+183 -31

No files matched your search

+11 -9
Dosyayı Görüntüle
@@ -19,17 +19,19 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#define LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING 1
#include "llvm/BinaryFormat/ELF.h"
#if defined(_WIN32)
#if defined(__has_attribute)
// MS compiler doesn't support __has_attribute
#undef __has_attribute
#endif
#endif
#include "hip_code_object.hpp"
#include "amd_hsa_elf.hpp"
#include <cstring>
#include <hip/driver_types.h>
#include "hip/hip_runtime_api.h"
#include "hip/hip_runtime.h"
#include "hip_internal.hpp"
#include "platform/program.hpp"
#include <elf/elf.hpp>
#include "comgrctx.hpp"
#include "hip_comgr_helper.hpp"
using namespace llvm::ELF;
namespace hip {
hipError_t ihipFree(void* ptr);