about summary refs log tree commit diff stats
path: root/subx
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 /subx
parent386ebc4e5c5bb0c818da98e1bb342d6db37227fa (diff)
downloadmu-dc9a126ed663d20d41a2475efca415e0ea23e402.tar.gz
4361
Diffstat (limited to 'subx')
-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();