#undef PAGE_{MASK,SIZE} to fix build problems on some machines.

committer: mfx <mfx> 1139743226 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2006-02-12 11:20:26 +00:00
parent 24ce1ef5e7
commit 51ac5172f5
4 changed files with 8 additions and 2 deletions
+3 -2
View File
@@ -129,12 +129,13 @@ void PackLinuxI386interp::pack2(OutputFile *fo, Filter &ft)
super::pack2(fo, ft);
}
#undef PAGE_MASK
#define PAGE_MASK (~0u<<12)
void PackLinuxI386interp::pack3(OutputFile *fo, Filter &/*ft*/)
{
unsigned long base = getbase(phdri, ehdri.e_phnum);
unsigned long sz = PAGE_MASK & (~PAGE_MASK + elfout.phdr[0].p_filesz);
unsigned base = getbase(phdri, ehdri.e_phnum);
unsigned sz = PAGE_MASK & (~PAGE_MASK + elfout.phdr[0].p_filesz);
if (base < (0x11000 + sz)) {
base = 0x11000 + sz;
}