summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Anderberg <tobias.anderberg@axis.com>2002-09-05 13:41:19 +0000
committerTobias Anderberg <tobias.anderberg@axis.com>2002-09-05 13:41:19 +0000
commit70ba13a96935d50f3790b0e7e674a74db15dea8d (patch)
tree421866598ae71fe374c180f0c37a2482431be146
parentccf964b4c2b384d4e005a358f781e49cd6f89c68 (diff)
Fixed another address alignment where a pagesize of 4k were assumed.
-rw-r--r--ldso/ldso/dl-elf.c2
-rw-r--r--ldso/ldso/readelflib1.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c
index a04ce5510..4259a4292 100644
--- a/ldso/ldso/dl-elf.c
+++ b/ldso/ldso/dl-elf.c
@@ -427,7 +427,7 @@ struct elf_resolve *_dl_load_elf_shared_library(int secure,
ppnt++;
};
- maxvma = (maxvma + 0xfffU) & ~0xfffU;
+ maxvma = (maxvma + ADDR_ALIGN) & ~ADDR_ALIGN;
minvma = minvma & ~0xffffU;
flags = MAP_PRIVATE /*| MAP_DENYWRITE */ ;
diff --git a/ldso/ldso/readelflib1.c b/ldso/ldso/readelflib1.c
index a04ce5510..4259a4292 100644
--- a/ldso/ldso/readelflib1.c
+++ b/ldso/ldso/readelflib1.c
@@ -427,7 +427,7 @@ struct elf_resolve *_dl_load_elf_shared_library(int secure,
ppnt++;
};
- maxvma = (maxvma + 0xfffU) & ~0xfffU;
+ maxvma = (maxvma + ADDR_ALIGN) & ~ADDR_ALIGN;
minvma = minvma & ~0xffffU;
flags = MAP_PRIVATE /*| MAP_DENYWRITE */ ;