Add support for dynamic relocations (code object v2.1)
Change-Id: Ic19be97d3ea78b53f5aa814787515b587d0be21b
[ROCm/ROCR-Runtime commit: 5a14d496ab]
Αυτή η υποβολή περιλαμβάνεται σε:
1 γονέας
76dea4613a
υποβολή
bf46c9e840
4 files changed
+174
-51
No files matched your search
@@ -1181,7 +1181,13 @@ namespace code {
|
||||
|
||||
void AmdHsaCode::PrintRelocationData(std::ostream& out, RelocationSection* section)
|
||||
{
|
||||
out << " Relocation Entries for " << section->targetSection()->Name() << " Section (total " << section->relocationCount() << "):" << std::endl;
|
||||
if (section->targetSection()) {
|
||||
out << " Relocation Entries for " << section->targetSection()->Name() << " Section (total " << section->relocationCount() << "):" << std::endl;
|
||||
} else {
|
||||
// Dynamic relocations do not have a target section, they work with
|
||||
// virtual addresses.
|
||||
out << " Dynamic Relocation Entries (total " << section->relocationCount() << "):" << std::endl;
|
||||
}
|
||||
for (size_t i = 0; i < section->relocationCount(); ++i) {
|
||||
out << " Relocation (Index " << i << "):" << std::endl;
|
||||
out << " Type: " << section->relocation(i)->type() << std::endl;
|
||||
|
||||
Reference in new issue
Block a user