From ffa68d5b8a24cae6ffb92a44b92678addb3505a8 Mon Sep 17 00:00:00 2001 From: Diana Chen Date: Fri, 2 Aug 2024 22:00:13 +0000 Subject: [PATCH] ZEBinary: update ELF spec to include ".text" section in ELF content Add .text section into ELF spec for binary of non-kernel functions' body. --- IGC/ZEBinWriter/zebin/source/autogen/ZEInfo.hpp | 2 +- IGC/ZEBinWriter/zebin/spec/elf.md | 3 ++- IGC/ZEBinWriter/zebin/spec/version.md | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/IGC/ZEBinWriter/zebin/source/autogen/ZEInfo.hpp b/IGC/ZEBinWriter/zebin/source/autogen/ZEInfo.hpp index e9b359373a2c..051f8daed318 100644 --- a/IGC/ZEBinWriter/zebin/source/autogen/ZEInfo.hpp +++ b/IGC/ZEBinWriter/zebin/source/autogen/ZEInfo.hpp @@ -241,7 +241,7 @@ struct zeInfoContainer KernelsMiscInfoTy kernels_misc_info; }; struct PreDefinedAttrGetter{ - static zeinfo_str_t getVersionNumber() { return "1.44"; } + static zeinfo_str_t getVersionNumber() { return "1.45"; } enum class ArgThreadSchedulingMode { age_based, diff --git a/IGC/ZEBinWriter/zebin/spec/elf.md b/IGC/ZEBinWriter/zebin/spec/elf.md index d2c938f6c2c6..7ddcf02505db 100644 --- a/IGC/ZEBinWriter/zebin/spec/elf.md +++ b/IGC/ZEBinWriter/zebin/spec/elf.md @@ -14,7 +14,8 @@ be documented properly in version.md. | ------ | ------ | ------ | | ELF header | Standard ELF header contains version and platform information || | Section headers | Standard ELF section headers || -| .text.{*kernel_name*} | Gen binary of kernel/functions in this compiled module | SHT_PROGBITS | +| .text.{*kernel_name*} | ISA binary of kernel in this compiled module | SHT_PROGBITS | +| .text | ISA binary of this compiled module that is not included in above .text.* sections. E.g. external functions | SHT_PROGBITS | | .data.const | Constant data section (if any) | SHT_PROGBITS | | .bss.const | Constant data with zero-initialized variables (if any) | SHT_NOBITS | | .data.global | Global data section (if any) | SHT_PROGBITS | diff --git a/IGC/ZEBinWriter/zebin/spec/version.md b/IGC/ZEBinWriter/zebin/spec/version.md index 6d39ca5183fe..b9e1d914be6e 100644 --- a/IGC/ZEBinWriter/zebin/spec/version.md +++ b/IGC/ZEBinWriter/zebin/spec/version.md @@ -7,7 +7,7 @@ SPDX-License-Identifier: MIT ============================= end_copyright_notice ==========================--> # ZEBIN Version -Version 1.44 +Version 1.45 ## Versioning Format: \<_Major number_\>.\<_Minor number_\> @@ -15,6 +15,7 @@ Format: \<_Major number_\>.\<_Minor number_\> - Minor number: Increase when backward-compatible features are added. For example, add new attributes. ## Change Note +- **Version 1.45**: Add .text section into ELF section content. - **Version 1.44**: Add implicit arg for inline sampler in bindless mode. - **Version 1.43**: Internal changes. - **Version 1.42**: Enable is_ptr attribute in indirect payload arguments.