mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
feature: Adding support for empty .text section
If .text section is empty then ignore it. Related-To: NEO-12229 Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
81f4b885f1
commit
b612301b72
@@ -249,7 +249,9 @@ DecodeError extractZebinSections(NEO::Elf::Elf<numBits> &elf, ZebinSections<numB
|
||||
if (sectionName.startsWith(Elf::SectionNames::textPrefix.data())) {
|
||||
out.textKernelSections.push_back(&elfSectionHeader);
|
||||
} else if (sectionName == Elf::SectionNames::text) {
|
||||
out.textSections.push_back(&elfSectionHeader);
|
||||
if (false == elfSectionHeader.data.empty()) {
|
||||
out.textSections.push_back(&elfSectionHeader);
|
||||
}
|
||||
} else if (sectionName == Elf::SectionNames::dataConst) {
|
||||
out.constDataSections.push_back(&elfSectionHeader);
|
||||
} else if (sectionName == Elf::SectionNames::dataGlobalConst) {
|
||||
|
||||
Reference in New Issue
Block a user