Debug Zebin pass kernel's address

feat: Set text sections' addresses with valid GPU VA. Offset debug symbols
with text segment names by corresponding segment's GPU VA.

Resolves: NEO-6873

Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
This commit is contained in:
Krystian Chmielewski
2022-04-11 15:52:17 +00:00
committed by Compute-Runtime-Automation
parent 7d4d22228f
commit 7a64982822
3 changed files with 71 additions and 44 deletions

View File

@@ -48,6 +48,7 @@ class DebugZebinCreator {
protected:
void applyRelocation(uint64_t addr, uint64_t value, NEO::Elf::RELOC_TYPE_ZEBIN type);
const Segments::Segment *getSegmentByName(ConstStringRef sectionName);
const Segments::Segment *getTextSegmentByName(ConstStringRef sectionName);
std::vector<uint8_t> debugZebin;
const Segments &segments;