about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-07-16 19:53:56 -0700
committerKartik Agaram <vc@akkartik.com>2018-07-16 19:53:56 -0700
commitdc9a126ed663d20d41a2475efca415e0ea23e402 (patch)
treedf653b13bc1a619aaaa9f50f3a55801dd38ba381
parent386ebc4e5c5bb0c818da98e1bb342d6db37227fa (diff)
downloadmu-dc9a126ed663d20d41a2475efca415e0ea23e402.tar.gz
4361
-rw-r--r--subx/021translate.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/subx/021translate.cc b/subx/021translate.cc
index 7fdeb93c..630681f5 100644
--- a/subx/021translate.cc
+++ b/subx/021translate.cc
@@ -113,7 +113,7 @@ void dump_elf_header(ostream& out, const program& p) {
     // this efficiency in practice, executable and shared object files must
     // have segment images whose file offsets and virtual addresses are
     // congruent, modulo the page size." -- http://refspecs.linuxbase.org/elf/elf.pdf (page 95)
-    uint32_t p_align = 0x1000;
+    uint32_t p_align = 0x1000;  // default page size on linux
     emit(p_align);
     if (p_offset % p_align != p.segments.at(i).start % p_align) {
       raise << "segment starting at 0x" << HEXWORD << p.segments.at(i).start << " is improperly aligned; alignment for p_offset " << p_offset << " should be " << (p_offset % p_align) << " but is " << (p.segments.at(i).start % p_align) << '\n' << end();
id='n143' href='#n143'>143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196