summaryrefslogtreecommitdiffstats
path: root/compiler/elf_writer_quick.h
diff options
context:
space:
mode:
authorAlex Light <allight@google.com>2014-06-06 15:45:32 -0700
committerBrian Carlstrom <bdc@google.com>2014-06-12 15:49:56 -0700
commit78382fa44ee505cf16835e4d22515e7252a90864 (patch)
treeb944fcc149ab09c4260c57b41128cfd6ffe09cdc /compiler/elf_writer_quick.h
parent1f968319c95136cafe8e5a813ef822f0a8963b98 (diff)
downloadandroid_art-78382fa44ee505cf16835e4d22515e7252a90864.tar.gz
android_art-78382fa44ee505cf16835e4d22515e7252a90864.tar.bz2
android_art-78382fa44ee505cf16835e4d22515e7252a90864.zip
Optionally add debug symbols to ELF files made by quick compiler.
Added debug symbols to ELF files created by dex2oat using the quick compiler. Adds two flags --include-debug-symbols and --no-include-debug-symbols for dex2oat that control the inclusion of these debug symbols. Debug info is added by default if kIsDebugBuild is true. Fixed bug where Intel DWARF information would not correctly deal with deduplicated code the binary. Changed the portable compiler code path in dex2oat.cc so that symbols will not be stripped when run with --include-debug-symbols. Change-Id: Ia2eb2f654dedf0e5e8606f7744e05b8d14155fb1
Diffstat (limited to 'compiler/elf_writer_quick.h')
-rw-r--r--compiler/elf_writer_quick.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/elf_writer_quick.h b/compiler/elf_writer_quick.h
index f687d2e80b..dbdccfc200 100644
--- a/compiler/elf_writer_quick.h
+++ b/compiler/elf_writer_quick.h
@@ -48,6 +48,10 @@ class ElfWriterQuick FINAL : public ElfWriter {
~ElfWriterQuick() {}
class ElfBuilder;
+ void AddDebugSymbols(ElfBuilder& builder,
+ OatWriter* oat_writer,
+ bool debug);
+
class ElfSectionBuilder {
public:
ElfSectionBuilder(const std::string& sec_name, Elf32_Word type, Elf32_Word flags,
@@ -235,7 +239,6 @@ class ElfWriterQuick FINAL : public ElfWriter {
~ElfBuilder() {}
bool Write();
- ElfSymtabBuilder* GetDefaultDynsymBuilder() { return &dynsym_builder_; }
// Adds the given raw section to the builder. This will copy it. The caller
// is responsible for deallocating their copy.