@@ -420,6 +420,9 @@ void ZEBinaryBuilder::addRuntimeSymbols(const IGC::SOpenCLProgramInfo& annotatio
420420 if (annotations.m_hasCrossThreadOffsetRelocations )
421421 mBuilder .addSymbol (vISA::CROSS_THREAD_OFF_R0_RELOCATION_NAME, /* addr*/ 0 , /* size*/ 0 ,
422422 llvm::ELF::STB_GLOBAL, llvm::ELF::STT_NOTYPE, /* sectionId*/ -1 );
423+ if (annotations.m_hasPerThreadOffsetRelocations )
424+ mBuilder .addSymbol (vISA::PER_THREAD_OFF_RELOCATION_NAME, /* addr*/ 0 , /* size*/ 0 ,
425+ llvm::ELF::STB_GLOBAL, llvm::ELF::STT_NOTYPE, /* sectionId*/ -1 );
423426}
424427
425428void ZEBinaryBuilder::addProgramSymbols (const IGC::SOpenCLProgramInfo& annotations)
@@ -883,12 +886,12 @@ void ZEBinaryBuilder::addElfSections(void* elfBin, size_t elfSize)
883886 }
884887
885888 unsigned int relocType = relocEntry.r_info & 0xF ;
886- zebin::R_TYPE_ZEBIN zebinType = R_ZE_NONE ;
889+ zebin::R_TYPE_ZEBIN zebinType = R_NONE ;
887890
888891 if (relocType == ELF::R_X86_64_64)
889- zebinType = R_ZE_SYM_ADDR ;
892+ zebinType = R_SYM_ADDR ;
890893 else if (relocType == ELF::R_X86_64_32)
891- zebinType = R_ZE_SYM_ADDR_32 ;
894+ zebinType = R_SYM_ADDR_32 ;
892895 else
893896 IGC_ASSERT_MESSAGE (false , " Unsupported ELF relocation type" );
894897
0 commit comments