about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-12-27 23:44:03 -0800
committerKartik Agaram <vc@akkartik.com>2018-12-27 23:44:03 -0800
commitefc3c64b0da682d497a793799f8958b9832c5650 (patch)
tree68f096fe079c458b336f2f1f19d7d5a1e5e5274c
parentf842ab98de58519184c7f1057991ad26c7bac69a (diff)
downloadmu-efc3c64b0da682d497a793799f8958b9832c5650.tar.gz
4878
-rw-r--r--html/subx/012elf.cc.html2
-rw-r--r--subx/012elf.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/html/subx/012elf.cc.html b/html/subx/012elf.cc.html
index c2afb4f4..af99bfab 100644
--- a/html/subx/012elf.cc.html
+++ b/html/subx/012elf.cc.html
@@ -198,7 +198,7 @@ if ('onhashchange' in window) {
 <span id="L135" class="LineNr">135 </span><span class="Normal">const</span> <span class="Normal">int</span> <a href='012elf.cc.html#L135'>CODE_SEGMENT</a> = <span class="Constant">0x09000000</span><span class="Delimiter">;</span>
 <span id="L136" class="LineNr">136 </span><span class="Normal">const</span> <span class="Normal">int</span> <a href='012elf.cc.html#L136'>DATA_SEGMENT</a> = <span class="Constant">0x0a000000</span><span class="Delimiter">;</span>
 <span id="L137" class="LineNr">137 </span><span class="Normal">const</span> <span class="Normal">int</span> <a href='012elf.cc.html#L137'>STACK_SEGMENT</a> = <span class="Constant">0x0b000000</span><span class="Delimiter">;</span>
-<span id="L138" class="LineNr">138 </span><span class="Normal">const</span> <span class="Normal">int</span> <a href='012elf.cc.html#L138'>AFTER_STACK</a> = <span class="Constant">0x0b000ffc</span><span class="Delimiter">;</span>  <span class="Comment">// forget final word because of the off-by-one with SEGMENT_ALIGNMENT;</span>
+<span id="L138" class="LineNr">138 </span><span class="Normal">const</span> <span class="Normal">int</span> <a href='012elf.cc.html#L138'>AFTER_STACK</a> = <span class="Constant">0x0c000000</span><span class="Delimiter">;</span>
 <span id="L139" class="LineNr">139 </span><span class="Normal">const</span> <span class="Normal">int</span> <a href='012elf.cc.html#L139'>ARGV_DATA_SEGMENT</a> = <span class="Constant">0x0c000000</span><span class="Delimiter">;</span>
 <span id="L140" class="LineNr">140 </span><span class="Delimiter">:(code)</span>
 <span id="L141" class="LineNr">141 </span><span class="Normal">void</span> <a href='012elf.cc.html#L141'>dump_stack</a><span class="Delimiter">()</span> <span class="Delimiter">{</span>
diff --git a/subx/012elf.cc b/subx/012elf.cc
index 5f57f163..4d1ae19d 100644
--- a/subx/012elf.cc
+++ b/subx/012elf.cc
@@ -135,7 +135,7 @@ void load_segment_from_program_header(uint8_t* elf_contents, int segment_index,
 const int CODE_SEGMENT = 0x09000000;
 const int DATA_SEGMENT = 0x0a000000;
 const int STACK_SEGMENT = 0x0b000000;
-const int AFTER_STACK = 0x0b000ffc;  // forget final word because of the off-by-one with SEGMENT_ALIGNMENT;
+const int AFTER_STACK = 0x0c000000;
 const int ARGV_DATA_SEGMENT = 0x0c000000;
 :(code)
 void dump_stack() {