133 return machine_type_;
144 return object_file_version_;
154 return program_headers_offset_;
159 return section_headers_offset_;
164 return processor_flags_;
176 return program_header_size_;
181 return numberof_segments_;
187 return section_header_size_;
195 return numberof_sections_;
200 return section_string_table_idx_;
214 return CLASS(identity_[EI_CLASS]);
219 return ELF_DATA(identity_[EI_DATA]);
224 return VERSION(identity_[EI_VERSION]);
229 return OS_ABI(identity_[EI_OSABI]);
234 return identity_[EI_ABIVERSION];
246 machine_type_ = arch;
250 object_file_version_ = version;
258 program_headers_offset_ = offset;
262 section_headers_offset_ = offset;
266 processor_flags_ = flags;
274 program_header_size_ = size;
278 numberof_segments_ = n;
281 section_header_size_ = size;
285 numberof_sections_ = n;
288 section_string_table_idx_ = idx;
295 identity_[EI_CLASS] =
static_cast<uint8_t
>(cls);
299 identity_[EI_DATA] =
static_cast<uint8_t
>(data);
303 identity_[EI_VERSION] =
static_cast<uint8_t
>(version);
307 identity_[EI_OSABI] =
static_cast<uint8_t
>(osabi);
311 identity_[EI_ABIVERSION] = version;
324 ARCH machine_type_ = ARCH::NONE;
325 VERSION object_file_version_ = VERSION::NONE;
326 uint64_t entrypoint_ = 0;
327 uint64_t program_headers_offset_ = 0;
328 uint64_t section_headers_offset_ = 0;
329 uint32_t processor_flags_ = 0;
330 uint32_t header_size_ = 0;
331 uint32_t program_header_size_ = 0;
332 uint32_t numberof_segments_ = 0;
333 uint32_t section_header_size_ = 0;
334 uint32_t numberof_sections_ = 0;
335 uint32_t section_string_table_idx_ = 0;