Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Unified Diff: courgette/disassembler_elf_32.h

Issue 1900223002: [Courgette] Make ELF section header sorting less intrusive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | courgette/disassembler_elf_32.cc » ('j') | courgette/disassembler_elf_32_x86_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/disassembler_elf_32.h
diff --git a/courgette/disassembler_elf_32.h b/courgette/disassembler_elf_32.h
index ce03ab8d352c0ec498fd1e82603a57d2af976ea7..d8efed50114f0fc6ea56308d6b0d9128ca3fc898 100644
--- a/courgette/disassembler_elf_32.h
+++ b/courgette/disassembler_elf_32.h
@@ -162,13 +162,19 @@ class DisassemblerElf32 : public Disassembler {
CheckBool ParseRel32RelocsFromSections() WARN_UNUSED_RESULT;
const Elf32_Ehdr* header_;
- std::vector<Elf32_Shdr> section_header_table_;
+
Elf32_Half section_header_table_size_;
+ // Section header table, ordered by section id.
+ std::vector<Elf32_Shdr> section_header_table_;
+
+ // An ordering of |section_header_table_|, sorted by file offset.
+ std::vector<Elf32_Half> section_header_file_offset_order_;
+
const Elf32_Phdr* program_header_table_;
Elf32_Half program_header_table_size_;
- // Section header for default
+ // Pointer to section names.
const char* default_string_section_;
std::vector<RVA> abs32_locations_;
« no previous file with comments | « no previous file | courgette/disassembler_elf_32.cc » ('j') | courgette/disassembler_elf_32_x86_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698