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

Unified Diff: courgette/disassembler_elf_32.h

Issue 1870293002: [Courgette] Sort section headers by sh_offset in ELF flows. (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') | no next file with comments »
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 56895bd570cc6e23c0ce511ac11644b40ea75735..ce03ab8d352c0ec498fd1e82603a57d2af976ea7 100644
--- a/courgette/disassembler_elf_32.h
+++ b/courgette/disassembler_elf_32.h
@@ -101,7 +101,7 @@ class DisassemblerElf32 : public Disassembler {
const Elf32_Shdr* SectionHeader(Elf32_Half id) const {
assert(id >= 0 && id < SectionHeaderCount());
- return section_header_table_ + id;
+ return &section_header_table_[id];
}
const uint8_t* SectionBody(Elf32_Half id) const {
@@ -162,7 +162,7 @@ class DisassemblerElf32 : public Disassembler {
CheckBool ParseRel32RelocsFromSections() WARN_UNUSED_RESULT;
const Elf32_Ehdr* header_;
- const Elf32_Shdr* section_header_table_;
+ std::vector<Elf32_Shdr> section_header_table_;
Elf32_Half section_header_table_size_;
const Elf32_Phdr* program_header_table_;
« no previous file with comments | « no previous file | courgette/disassembler_elf_32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698