From 44fdc79f496281d4e0f99539c16a88de02b16d5b Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sat, 18 May 2019 01:02:22 -0700 Subject: 5188 Clean up some unused constants. --- subx/012elf.cc | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'subx/012elf.cc') diff --git a/subx/012elf.cc b/subx/012elf.cc index 0ae0b108..da70adec 100644 --- a/subx/012elf.cc +++ b/subx/012elf.cc @@ -138,15 +138,13 @@ void load_segment_from_program_header(uint8_t* elf_contents, int segment_index, :(before "End Includes") // Very primitive/fixed/insecure ELF segments for now. -// code: 0x09000000 -> 0x09ffffff (specified in ELF binary) -// data: 0x0a000000 -> 0x0affffff (specified in ELF binary) -// --- heap gets mmap'd somewhere here --- -// stack: 0xbdffffff -> 0xbd000000 (downward; not in ELF binary) -// argv hack: 0xbf000000 -> 0xbfffffff (not in ELF binary) -// -// Addresses above 0xc0000000 are reserved for the Linux kernel. -const uint32_t CODE_SEGMENT = 0x09000000; -const uint32_t DATA_SEGMENT = 0x0a000000; +// --- inaccessible: 0x00000000 -> 0x08047fff +// code: 0x09000000 -> 0x09ffffff (specified in ELF binary) +// data: 0x0a000000 -> 0x0affffff (specified in ELF binary) +// --- heap gets mmap'd somewhere here --- +// stack: 0xbdffffff -> 0xbd000000 (downward; not in ELF binary) +// argv hack: 0xbf000000 -> 0xbfffffff (not in ELF binary) +// --- reserved for kernel: 0xc0000000 -> ... const uint32_t START_HEAP = 0x0b000000; const uint32_t END_HEAP = 0xbd000000; const uint32_t STACK_SEGMENT = 0xbd000000; -- cgit 1.4.1-2-gfad0 c2'>commit diff stats
path: root/.travis.yml
blob: 6cef88b244502a9ca5c0b94105d8c14daa0388f2 (plain) (tree)
1
2
3
4
5
6
7