From 91b290038cbd00a48028922a5e76c0c39d6ebcb6 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Fri, 8 Feb 2019 15:51:31 +0000 Subject: 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 --- compiler/cfi_test.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'compiler/cfi_test.h') 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 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); -- cgit v1.2.3-59-g8ed1b