Remove Prelink

675 views
Skip to first unread message

Antoine

unread,
Jul 1, 2010, 9:08:08 AM7/1/10
to android-porting
Hi,
I'm the newbbie of the group

I heard and I read a lot of think about android prelink, But I want to
remove prelink because
I have to implement Address space layout randomization (ASLR) with
mmap() on android

so when there is prelink and ASLR android dont boot, he don't find any
lib's
I tried to put LOCAL_PRELINK_MODULE := false in every android.mk libs
but it isn't work
I found the apriori file that make the prelink with prelinkmap.c and
prelink-linux-arm.map

The problem is I don't found where the main.c of apriori is called in
android, I dont clearly understand how works prelink on android.

Can you help me please

regards
Antoine

梁亦飞

unread,
Jul 2, 2010, 5:00:47 AM7/2/10
to android-porting
Hi Antoine,
I'm not sure how exactly apriori be called, but i do know the simplest
way to disable prelink is
change the TARGET_PRELINK_MODULE in build/core/config.mk into false .

If you want to digg out the whole procedure, i suggest you check the
transform-to-prelinked command in definition.mk in build/core
directory.

梁亦飞

unread,
Jul 2, 2010, 5:08:30 AM7/2/10
to Antoine, android...@googlegroups.com
Hi Antonie,

I am not sure how exactly apriory be called, but i suggest you check
the transform-to-prelinked command which defined
in build/core/definition.mk.

The simplest way to disable the prelink function is set the
TARGET_PRELINK_MODULE in build/core/config.mk as false,
you can try it.

On 7月1日, 下午9时08分, Antoine <stericsson.cry...@gmail.com> wrote:

Antoine

unread,
Jul 6, 2010, 9:55:29 AM7/6/10
to android-porting

So for now I've shuttdown some error controls, put
LOCAL_PRELINK_MODULE := false everywere and remove the -
DSUPPORT_ANDROID_PRELINK_TAG and -DPRELINK on every Android.mk (libs,
linker, soslim)

And it's work android boot ..... not very fine cause android is
blocked on the boot
but it's the first step.

Now I have to realy understand how soslim and linker works together,
if someone know a little about that..
Antoine

Antoine

unread,
Jul 7, 2010, 2:49:41 AM7/7/10
to android-porting
thanks for your answers
I'm gonna try this
regards
Antoine
>

Antoine

unread,
Jul 7, 2010, 3:09:13 AM7/7/10
to android-porting

Antoine

unread,
Jul 9, 2010, 7:16:59 AM7/9/10
to android-porting
Yeah it's work

in config.mk => LOCAL_PRELINK_MODULE:=false
definition.mk => comment tronform_to_prelinked
and remove -DSUPPORT_ANDROID_PRELINK_TAG in every android.mk if
apriori and soslim

it's work but I have still some probleme with the ALSA hardware and
alsa lib
I put alsa generic audio it's work but without sound but it's not a
huge issue

thanks for your help
regards
Antoine
Reply all
Reply to author
Forward
0 new messages