Skip to content

Commit

Permalink
ZEBinary: update ELF spec to include ".text" section in ELF content
Browse files Browse the repository at this point in the history
Add .text section into ELF spec for binary of non-kernel functions'
body.
  • Loading branch information
DianaChen authored and igcbot committed Aug 5, 2024
1 parent 850d0a1 commit ffa68d5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion IGC/ZEBinWriter/zebin/source/autogen/ZEInfo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion IGC/ZEBinWriter/zebin/spec/elf.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
3 changes: 2 additions & 1 deletion IGC/ZEBinWriter/zebin/spec/version.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ SPDX-License-Identifier: MIT
============================= end_copyright_notice ==========================-->

# ZEBIN Version
Version 1.44
Version 1.45

## Versioning
Format: \<_Major number_\>.\<_Minor number_\>
- Major number: Increase when non-backward-compatible features are added. For example, rename attributes or remove attributes.
- 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.
Expand Down

0 comments on commit ffa68d5

Please sign in to comment.