diff options
-rw-r--r-- | subx/021translate.cc | 2 |
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(); |