diff options
author | 2019-02-08 15:51:31 +0000 | |
---|---|---|
committer | 2019-02-12 13:51:16 +0000 | |
commit | 91b290038cbd00a48028922a5e76c0c39d6ebcb6 (patch) | |
tree | 0b05e3a20da9ae131b9299554b4c7efa7e156f7d /compiler/cfi_test.h | |
parent | 794350fd0e21aa9e259b6c45394494871e7fdb13 (diff) |
Remove support for generating .eh_frame ELF section.
The eh_frame support was originally added because the
old libunwind library didn't support debug_frame.
The new libunwind supports debug_frame well, and since
we have switched to it, we can remove the legacy code.
The main advantage of debug_frame is that it can be
compressed as part of mini-debug-info.
I am somewhat preserving the .eh_frame_hdr binary
search table (renamed as .debug_frame_hdr.android).
Bug: 123621350
Test: Generated framework oat files are identical.
Change-Id: I35b18895482f2176e02df07b086af7a1d40f90d5
Diffstat (limited to 'compiler/cfi_test.h')
-rw-r--r-- | compiler/cfi_test.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/cfi_test.h b/compiler/cfi_test.h index 658bdb35ae..bc816da3dc 100644 --- a/compiler/cfi_test.h +++ b/compiler/cfi_test.h @@ -32,8 +32,6 @@ namespace art { -constexpr dwarf::CFIFormat kCFIFormat = dwarf::DW_DEBUG_FRAME_FORMAT; - class CFITest : public dwarf::DwarfTest { public: void GenerateExpected(FILE* f, InstructionSet isa, const char* isa_str, @@ -50,7 +48,7 @@ class CFITest : public dwarf::DwarfTest { // Pretty-print CFI opcodes. constexpr bool is64bit = false; dwarf::DebugFrameOpCodeWriter<> initial_opcodes; - dwarf::WriteCIE(is64bit, dwarf::Reg(8), initial_opcodes, kCFIFormat, &debug_frame_data_); + dwarf::WriteCIE(is64bit, dwarf::Reg(8), initial_opcodes, &debug_frame_data_); std::vector<uintptr_t> debug_frame_patches; dwarf::WriteFDE(is64bit, /* section_address= */ 0, @@ -58,7 +56,6 @@ class CFITest : public dwarf::DwarfTest { /* code_address= */ 0, actual_asm.size(), actual_cfi, - kCFIFormat, /* buffer_address= */ 0, &debug_frame_data_, &debug_frame_patches); |