Improved section offset calculation
This commit is contained in:
parent
e2a6a31d8e
commit
4b7c9f387d
7 changed files with 56 additions and 38 deletions
|
@ -9,11 +9,8 @@ const (
|
|||
// The base address is the virtual address for our ELF file.
|
||||
BaseAddress = 0x40 * MinAddress
|
||||
|
||||
// Align decides the alignment of the sections and it must be a multiple of the page size.
|
||||
// Align is the alignment of the sections and it must be a multiple of the page size.
|
||||
Align = 0x1000
|
||||
|
||||
// The code offset is the offset of the executable machine code within the file.
|
||||
CodeOffset = Align
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue