OSDN Git Service

ldso: Fix loadaddr and mappaddr when prelink support is enabled.
authorFilippo Arcidiacono <filippo.arcidiacono@st.com>
Thu, 26 Aug 2010 10:00:03 +0000 (12:00 +0200)
committerCarmelo Amoroso <carmelo.amoroso@st.com>
Fri, 17 Sep 2010 14:13:45 +0000 (16:13 +0200)
commitb9766aa08c90b6718d5497d6a6cf9e6f737e5141
tree3b0f3347413b9dc321ea48659d673f973b620221
parenta33796043bdef5345bc00a528c942f91a87af8e9
ldso: Fix loadaddr and mappaddr when prelink support is enabled.

Fixed loadaddr and mappaddr fields to correctly work when prelink
support is enabled.
- loadaddr is an offset relative to the first loadable segment.
- mapaddr is the address where the object has been mapped in memory.

Non PIC library detection fixed too.

Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
ldso/ldso/dl-elf.c
ldso/ldso/dl-hash.c
ldso/ldso/ldso.c