@@ -68,9 +68,9 @@ struct ELFHeader
68
68
elf_half e_machine; // /< Target architecture.
69
69
elf_half e_ehsize; // /< Byte size of the ELF header.
70
70
elf_half e_phentsize; // /< Size of a program header table entry.
71
- elf_half e_phnum; // /< Number of program header entrys .
71
+ elf_half e_phnum; // /< Number of program header entries .
72
72
elf_half e_shentsize; // /< Size of a section header table entry.
73
- elf_half e_shnum; // /< Number of section header entrys .
73
+ elf_half e_shnum; // /< Number of section header entries .
74
74
elf_half e_shstrndx; // /< String table section index.
75
75
76
76
ELFHeader ();
@@ -184,19 +184,19 @@ struct ELFSectionHeader
184
184
// / @brief Generic representation of an ELF program header.
185
185
struct ELFProgramHeader
186
186
{
187
- elf_word p_type; // /< Type of program segement .
188
- elf_word p_flags; // /< Segement attibutes .
189
- elf_off p_offset; // /< Start of segment from begining of file.
187
+ elf_word p_type; // /< Type of program segment .
188
+ elf_word p_flags; // /< Segment attributes .
189
+ elf_off p_offset; // /< Start of segment from beginning of file.
190
190
elf_addr p_vaddr; // /< Virtual address of segment in memory.
191
191
elf_addr p_paddr; // /< Physical address (for non-VM systems).
192
192
elf_xword p_filesz; // /< Byte size of the segment in file.
193
193
elf_xword p_memsz; // /< Byte size of the segment in memory.
194
- elf_xword p_align; // /< Segement alignement constraint.
194
+ elf_xword p_align; // /< Segment alignment constraint.
195
195
196
196
ELFProgramHeader ();
197
197
198
- // / Parse an ELFProgramHeader entry from the given DataExtracter starting at
199
- // / position \p offset. The address size of the DataExtracter determines if
198
+ // / Parse an ELFProgramHeader entry from the given DataExtractor starting at
199
+ // / position \p offset. The address size of the DataExtractor determines if
200
200
// / a 32 or 64 bit object is to be parsed.
201
201
// /
202
202
// / @param[in] data
@@ -234,13 +234,13 @@ struct ELFSymbol
234
234
// / Returns the type attribute of the st_info member.
235
235
unsigned char getType () const { return st_info & 0x0F ; }
236
236
237
- // / Sets the bining and type of the st_info member.
237
+ // / Sets the binding and type of the st_info member.
238
238
void setBindingAndType (unsigned char binding, unsigned char type) {
239
239
st_info = (binding << 4 ) + (type & 0x0F );
240
240
}
241
241
242
- // / Parse an ELFSymbol entry from the given DataExtracter starting at
243
- // / position \p offset. The address size of the DataExtracter determines if
242
+ // / Parse an ELFSymbol entry from the given DataExtractor starting at
243
+ // / position \p offset. The address size of the DataExtractor determines if
244
244
// / a 32 or 64 bit object is to be parsed.
245
245
// /
246
246
// / @param[in] data
@@ -271,8 +271,8 @@ struct ELFDynamic
271
271
272
272
ELFDynamic ();
273
273
274
- // / Parse an ELFDynamic entry from the given DataExtracter starting at
275
- // / position \p offset. The address size of the DataExtracter determines if
274
+ // / Parse an ELFDynamic entry from the given DataExtractor starting at
275
+ // / position \p offset. The address size of the DataExtractor determines if
276
276
// / a 32 or 64 bit object is to be parsed.
277
277
// /
278
278
// / @param[in] data
0 commit comments