diff options
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/ldso/dl-elf.c | 2 | ||||
-rw-r--r-- | ldso/ldso/readelflib1.c | 2 |
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 */ ; |