about summary refs log tree commit diff stats
path: root/subx/012elf.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-05-18 01:02:22 -0700
committerKartik Agaram <vc@akkartik.com>2019-05-18 01:02:22 -0700
commit44fdc79f496281d4e0f99539c16a88de02b16d5b (patch)
treeec228c29e80665cecc44f8dd7bce71d40b7bf906 /subx/012elf.cc
parentab16d49bdc55d64ba27f2ef5fe6811669b9d5c1f (diff)
downloadmu-44fdc79f496281d4e0f99539c16a88de02b16d5b.tar.gz
5188
Clean up some unused constants.
Diffstat (limited to 'subx/012elf.cc')
-rw-r--r--subx/012elf.cc16
1 files changed, 7 insertions, 9 deletions
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;