Re: [Gc] Re: gc 7.4.0 on Android

Ivan Maidanski ivmai at mail.ru
Sun Dec 8 00:24:47 PST 2013


 Hi Manuel,

Wed,  4 Dec 2013, 10:01 +01:00 from Manuel.Serrano at inria.fr:
>Hi Manuel,
>
>> 1. please check you NDK, it should have link.h file.
>I do have some link.h:
>
>% find android-ndk-r8e -name link.h
>android-ndk-r8e/platforms/android-8/arch-arm/usr/include/link.h
>android-ndk-r8e/platforms/android-9/arch-arm/usr/include/link.h
>android-ndk-r8e/platforms/android-9/arch-mips/usr/include/link.h
>android-ndk-r8e/platforms/android-9/arch-x86/usr/include/link.h
>android-ndk-r8e/platforms/android-14/arch-arm/usr/include/link.h
>android-ndk-r8e/platforms/android-14/arch-mips/usr/include/link.h
>android-ndk-r8e/platforms/android-14/arch-x86/usr/include/link.h
>android-ndk-r8e/platforms/android-5/arch-arm/usr/include/link.h
>android-ndk-r8e/platforms/android-4/arch-arm/usr/include/link.h
>android-ndk-r8e/platforms/android-3/arch-arm/usr/include/link.h
>
>but without me knowing why my GCC wrapper does not find any of them. It
>could be that the GCC wrapper I used is missing some directories. Just do be
>sure that we are understanding each other, please find attached this
>wrapper. I have been using since I have started developing on Android:
Your script contains the right included folder: -I#{droid_root}/bionic/libc/include
Please check whether droid_root points to the right root folder.

>
>If you have something else to suggest, I will be glad to test.
>
>> 2. dynamic register is not working on Android (looks like the condition
>> "tag == DT_DEBUG" is never satisfied on bionic), so you just skip the
>> code by -D IGNORE_DYNAMIC_LOADING. I use a workaround (works only on ARM
>I'm not sure to fully understand what you mean here. Should I use the 
>-DIGNORE_DYNAMIC_LOADING C compilation option in order to disable dynamic
>loading? Is that what you are proposing.
yes.

>
>> platform) - insert GC_INIT() call into initialization code of each
>> dynamically loaded library.
>Ah. I will try that (I'm not sure I will find the time to test it this morning). 
>Calling GC_INIT() many time is harmless, right? yes.

Regards,
Ivan

>
>
>-- 
>Manuel
>
>_______________________________________________
>Gc mailing list
>Gc at linux.hpl.hp.com
>https://www.hpl.hp.com/hosted/linux/mail-archives/gc/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://napali.hpl.hp.com/pipermail/gc/attachments/20131208/1d479de0/attachment.htm


More information about the Gc mailing list