summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2011-03-03 09:22:15 +0100
committerCarmelo Amoroso <carmelo.amoroso@st.com>2011-03-07 18:19:32 +0100
commit289d19f45d7f8af9a4079938a3426aafdd2674ba (patch)
tree8003d467cbe3145bb51d1cd08ec66b359bfab10c /ldso
parentac5e9d08f4f7aa004e48b9484c3005f0ecc0a105 (diff)
ldso: use ADDR_ALIGN instead of hard-coded value
Use ADDR_ALIGN to align the minvma when loading shared libraries instead of the hard coded 0xffffU value. This fixes teh stand/alone support on ARM as reported in bug #3133. Signed-off-by: Sven Ola <sven-ola@gmx.de> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com> (cherry picked from commit 435471db8561e4686e5921b7f719ab6d5a0d06f7) Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'ldso')
-rw-r--r--ldso/ldso/dl-elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c
index d72dd5ae2..5d49e073b 100644
--- a/ldso/ldso/dl-elf.c
+++ b/ldso/ldso/dl-elf.c
@@ -474,7 +474,7 @@ struct elf_resolve *_dl_load_elf_shared_library(int secure,
DL_CHECK_LIB_TYPE (epnt, piclib, _dl_progname, libname);
maxvma = (maxvma + ADDR_ALIGN) & PAGE_ALIGN;
- minvma = minvma & ~0xffffU;
+ minvma = minvma & ~ADDR_ALIGN;
flags = MAP_PRIVATE /*| MAP_DENYWRITE */ ;