SWDEV-423366: Added workaround for comgr file offset. Fixed legacy mode for ATT.

Change-Id: Ib566f3573829b59ae6bd70a5479b9d7fb7fdc6ee
This commit is contained in:
Giovanni LB
2023-09-30 14:15:09 -03:00
committed by Giovanni Baraldi
parent f36568b35c
commit d8951e2018
7 changed files with 146 additions and 72 deletions
+2 -4
View File
@@ -176,10 +176,8 @@ class att_plugin_t {
for (auto& instance : decoder->instructions) {
uint64_t addr = instance.address + symbol.base_address;
if (kernel_begin_addr == addr)
isafile << "; Begin <Kernel> " << kernel_name_mangled << '\n';
else if (decoder->m_symbol_map.find(instance.address) != decoder->m_symbol_map.end())
isafile << "; Begin " << decoder->m_symbol_map[instance.address].first << '\n';
if (decoder->m_symbol_map.find(instance.address) != decoder->m_symbol_map.end())
isafile << "; Begin " << decoder->m_symbol_map[instance.address].name << '\n';
if (instance.cpp_reference) isafile << "; " << instance.cpp_reference << '\n';
isafile << instance.instruction << " // " << std::hex << addr << '\n';
}