Improved documentation
This commit is contained in:
parent
1b75529bb3
commit
96078f40d8
6 changed files with 49 additions and 26 deletions
|
@ -1,10 +1,17 @@
|
|||
package config
|
||||
|
||||
const (
|
||||
MinAddress = 0x10000
|
||||
// This is the absolute virtual minimum address we can load a program at, see `sysctl vm.mmap_min_addr`.
|
||||
MinAddress = 0x10000
|
||||
|
||||
// The base address is the virtual address for our ELF file.
|
||||
BaseAddress = 0x40 * MinAddress
|
||||
CodeOffset = 0x80
|
||||
Align = 0x10
|
||||
|
||||
// The code offset is the offset of the executable machine code within the file.
|
||||
CodeOffset = 64 + 56 + 56
|
||||
|
||||
// Align decides the alignment of the sections and it must be a multiple of the page size.
|
||||
Align = 0x1000
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue