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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COURGETTE_DISASSEMBLER_ELF_32_H_ 5 #ifndef COURGETTE_DISASSEMBLER_ELF_32_H_
6 #define COURGETTE_DISASSEMBLER_ELF_32_H_ 6 #define COURGETTE_DISASSEMBLER_ELF_32_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 FileOffset end_file_offset, 155 FileOffset end_file_offset,
156 AssemblyProgram* program) WARN_UNUSED_RESULT; 156 AssemblyProgram* program) WARN_UNUSED_RESULT;
157 157
158 CheckBool ParseAbs32Relocs() WARN_UNUSED_RESULT; 158 CheckBool ParseAbs32Relocs() WARN_UNUSED_RESULT;
159 159
160 CheckBool CheckSection(RVA rva) WARN_UNUSED_RESULT; 160 CheckBool CheckSection(RVA rva) WARN_UNUSED_RESULT;
161 161
162 CheckBool ParseRel32RelocsFromSections() WARN_UNUSED_RESULT; 162 CheckBool ParseRel32RelocsFromSections() WARN_UNUSED_RESULT;
163 163
164 const Elf32_Ehdr* header_; 164 const Elf32_Ehdr* header_;
165
166 Elf32_Half section_header_table_size_;
167
168 // Section header table, ordered by section id.
165 std::vector<Elf32_Shdr> section_header_table_; 169 std::vector<Elf32_Shdr> section_header_table_;
166 Elf32_Half section_header_table_size_; 170
171 // An ordering of |section_header_table_|, sorted by file offset.
172 std::vector<Elf32_Half> section_header_file_offset_order_;
167 173
168 const Elf32_Phdr* program_header_table_; 174 const Elf32_Phdr* program_header_table_;
169 Elf32_Half program_header_table_size_; 175 Elf32_Half program_header_table_size_;
170 176
171 // Section header for default 177 // Pointer to section names.
172 const char* default_string_section_; 178 const char* default_string_section_;
173 179
174 std::vector<RVA> abs32_locations_; 180 std::vector<RVA> abs32_locations_;
175 ScopedVector<TypedRVA> rel32_locations_; 181 ScopedVector<TypedRVA> rel32_locations_;
176 182
177 DISALLOW_COPY_AND_ASSIGN(DisassemblerElf32); 183 DISALLOW_COPY_AND_ASSIGN(DisassemblerElf32);
178 }; 184 };
179 185
180 } // namespace courgette 186 } // namespace courgette
181 187
182 #endif // COURGETTE_DISASSEMBLER_ELF_32_H_ 188 #endif // COURGETTE_DISASSEMBLER_ELF_32_H_
OLDNEW
« 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