From dc9a126ed663d20d41a2475efca415e0ea23e402 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 16 Jul 2018 19:53:56 -0700 Subject: 4361 --- subx/021translate.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit 1.4.1-2-gfad0