Simplified executable file formats

This commit is contained in:
2024-08-15 00:46:49 +02:00
parent fe1b353fe6
commit 7092cb6626
29 changed files with 236 additions and 218 deletions

View File

@ -0,0 +1,18 @@
package elf
// SectionHeaderSize is equal to the size of a section header in bytes.
const SectionHeaderSize = 64
// SectionHeader points to the data sections of our program.
type SectionHeader struct {
NameIndex int32
Type SectionType
Flags SectionFlags
VirtualAddress int64
Offset int64
SizeInFile int64
Link int32
Info int32
Align int64
EntrySize int64
}