diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2011-03-03 09:22:15 +0100 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2011-03-03 09:22:15 +0100 |
commit | 435471db8561e4686e5921b7f719ab6d5a0d06f7 (patch) | |
tree | de75b17425eb35036d86f6df403724fb1cb1bfd1 /ldso | |
parent | be88a80858ea4febcc621f87166fbf4c1753e513 (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>
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/ldso/dl-elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c index 5562e0784..61d495974 100644 --- a/ldso/ldso/dl-elf.c +++ b/ldso/ldso/dl-elf.c @@ -465,7 +465,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 */ ; if (!piclib) |