diff options
| author | Stephane Sezer <sas@cd80.net> | 2018-08-06 22:21:28 +0000 |
|---|---|---|
| committer | Stephane Sezer <sas@cd80.net> | 2018-08-06 22:21:28 +0000 |
| commit | 0c679b7108f6169ec996abecaf8db847ebbc2420 (patch) | |
| tree | 0695004b6e6a78c608d4ae154383f28e1a8103ae /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp | |
| parent | f2a167fb1dd0319f303f2777f2f8c429653b575e (diff) | |
Revert "Add a relocation for R_AARCH64_ABS32 in ObjectFileELF"
This reverts commit f055ce7eb893cd0d17ebcfd4125018f46f983aff.
llvm-svn: 339071
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp')
| -rw-r--r-- | lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp index 1ec003a4cfd1..8701908378f1 100644 --- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp +++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp @@ -2697,20 +2697,15 @@ unsigned ObjectFileELF::ApplyRelocations( break; } case R_X86_64_32: - case R_X86_64_32S: - case R_AARCH64_ABS32: { + case R_X86_64_32S: { symbol = symtab->FindSymbolByID(reloc_symbol(rel)); if (symbol) { addr_t value = symbol->GetAddressRef().GetFileAddress(); value += ELFRelocation::RelocAddend32(rel); - if (!((IsRelocABS32(rel) && value <= UINT32_MAX) || - (reloc_type(rel) == R_X86_64_32S && - ((int64_t)value <= INT32_MAX && - (int64_t)value >= INT32_MIN)))) { - Log *log = - lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_MODULES); - log->Printf("Failed to apply debug info relocations"); - } + assert( + (reloc_type(rel) == R_X86_64_32 && (value <= UINT32_MAX)) || + (reloc_type(rel) == R_X86_64_32S && + ((int64_t)value <= INT32_MAX && (int64_t)value >= INT32_MIN))); uint32_t truncated_addr = (value & 0xFFFFFFFF); DataBufferSP &data_buffer_sp = debug_data.GetSharedDataBuffer(); uint32_t *dst = reinterpret_cast<uint32_t *>( |
