diff options
| author | 2018-01-18 22:55:20 +0000 | |
|---|---|---|
| committer | 2018-01-18 23:25:39 +0000 | |
| commit | 259316264d160012d1f429bae01c5e6d444fcd52 (patch) | |
| tree | df9520388df181dc2df51a2ad03982f5ef0db757 /compiler | |
| parent | ad643b01de3f1152badfb12edb8469d40843d1e7 (diff) | |
Fix the offset of $dexfile debug symbol.
The symbol is currently unused but will be needed soon.
It is also more convenient if it is marked as STT_FUNC.
Test: testrunner.py --intepreter -t 137 (with other CLs)
Change-Id: I47bcbb498c47cd662eb85aaeb0363678e54d6471
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/debug/elf_symtab_writer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/debug/elf_symtab_writer.h b/compiler/debug/elf_symtab_writer.h index 9007360d01..a853714d2b 100644 --- a/compiler/debug/elf_symtab_writer.h +++ b/compiler/debug/elf_symtab_writer.h @@ -108,7 +108,7 @@ static void WriteDebugSymbols(linker::ElfBuilder<ElfTypes>* builder, uint64_t dex_address = dex->GetAddress() + it.first /* offset within the section */; const DexFile* dex_file = it.second; typename ElfTypes::Word dex_name = strtab->Write(kDexFileSymbolName); - symtab->Add(dex_name, dex, dex_address, dex_file->Size(), STB_LOCAL, STT_NOTYPE); + symtab->Add(dex_name, dex, dex_address, dex_file->Size(), STB_GLOBAL, STT_FUNC); if (mini_debug_info) { continue; // Don't add interpreter method names to mini-debug-info for now. } |