discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Android 4.4.3 prints a warning: libobjc.so text relocations


From: Ivan Vučica
Subject: Re: Android 4.4.3 prints a warning: libobjc.so text relocations
Date: Mon, 9 Jun 2014 23:20:34 +0100

ivucica@FloatingBox:~/projects/catchdroid$ readelf -r apk/lib/armeabi/libobjc.so | grep -v R_ARM_RELATIVE

Relocation section '.rel.dyn' at offset 0x5220 contains 980 entries:
 Offset     Info    Type            Sym.Value  Sym. Name
0002de5c  00000415 R_ARM_GLOB_DAT    00000000   __sF
0002f2d8  00002a02 R_ARM_ABS32       00000000   free
0002df04  0001bc15 R_ARM_GLOB_DAT    00000000   __gnu_Unwind_Find_exid
0002df1c  0001c715 R_ARM_GLOB_DAT    00000000   __cxa_call_unexpected

Relocation section '.rel.plt' at offset 0x70c0 contains 53 entries:
 Offset     Info    Type            Sym.Value  Sym. Name
0002df2c  00000216 R_ARM_JUMP_SLOT   00000000   __cxa_atexit
0002df30  00000116 R_ARM_JUMP_SLOT   00000000   __cxa_finalize
0002df34  00000516 R_ARM_JUMP_SLOT   00000000   fprintf
0002df38  00000716 R_ARM_JUMP_SLOT   00000000   strstr
0002df3c  00000616 R_ARM_JUMP_SLOT   00000000   strlen
0002df40  00001316 R_ARM_JUMP_SLOT   00000000   calloc
0002df44  00001516 R_ARM_JUMP_SLOT   00000000   pthread_mutex_lock
0002df48  00001616 R_ARM_JUMP_SLOT   00000000   pthread_mutex_unlock
0002df4c  00001816 R_ARM_JUMP_SLOT   00000000   strdup
0002df50  00001716 R_ARM_JUMP_SLOT   00000000   strcmp
0002df54  00002c16 R_ARM_JUMP_SLOT   00000000   getenv
0002df58  00002816 R_ARM_JUMP_SLOT   00000000   asprintf
0002df5c  00002716 R_ARM_JUMP_SLOT   00000000   abort
0002df60  00002e16 R_ARM_JUMP_SLOT   00000000   memcpy
0002df64  00002b16 R_ARM_JUMP_SLOT   00000000   ftruncate
0002df68  00003116 R_ARM_JUMP_SLOT   00000000   mmap
0002df6c  00002d16 R_ARM_JUMP_SLOT   00000000   isdigit
0002df70  00002016 R_ARM_JUMP_SLOT   00000000   __assert2
0002df74  00002f16 R_ARM_JUMP_SLOT   00000000   memmove
0002df78  00002a16 R_ARM_JUMP_SLOT   00000000   free
0002df7c  00003016 R_ARM_JUMP_SLOT   00000000   mkstemp
0002df80  00003216 R_ARM_JUMP_SLOT   00000000   unlink
0002df84  00003616 R_ARM_JUMP_SLOT   00000000   realloc
0002df88  00005016 R_ARM_JUMP_SLOT   00000000   malloc
0002df8c  00007116 R_ARM_JUMP_SLOT   00000000   pthread_key_create
0002df90  00007216 R_ARM_JUMP_SLOT   00000000   pthread_once
0002df94  00007016 R_ARM_JUMP_SLOT   00000000   pthread_getspecific
0002df98  00007316 R_ARM_JUMP_SLOT   00000000   pthread_setspecific
0002df9c  00006816 R_ARM_JUMP_SLOT   00000000   __cxa_begin_catch
0002dfa0  00006916 R_ARM_JUMP_SLOT   00000000   __cxa_end_catch
0002dfa4  00006a16 R_ARM_JUMP_SLOT   00000000   __cxa_rethrow
0002dfa8  00008816 R_ARM_JUMP_SLOT   00000000   strchr
0002dfac  00008a16 R_ARM_JUMP_SLOT   00000000   strtol
0002dfb0  00008616 R_ARM_JUMP_SLOT   00000000   __aeabi_memcpy
0002dfb4  00008916 R_ARM_JUMP_SLOT   00000000   strncpy
0002dfb8  00009c16 R_ARM_JUMP_SLOT   00000000   valloc
0002dfbc  0000fb16 R_ARM_JUMP_SLOT   00000000   fflush
0002dfc0  0000fc16 R_ARM_JUMP_SLOT   00000000   fopen
0002dfc4  0000fd16 R_ARM_JUMP_SLOT   00000000   fwrite
0002dfc8  00010116 R_ARM_JUMP_SLOT   00000000   pthread_cond_init
0002dfcc  00010716 R_ARM_JUMP_SLOT   00000000   pthread_mutex_init
0002dfd0  00010416 R_ARM_JUMP_SLOT   00000000   pthread_create
0002dfd4  00010516 R_ARM_JUMP_SLOT   00000000   pthread_detach
0002dfd8  00010016 R_ARM_JUMP_SLOT   00000000   pthread_cond_destroy
0002dfdc  00010616 R_ARM_JUMP_SLOT   00000000   pthread_mutex_destroy
0002dfe0  00010816 R_ARM_JUMP_SLOT   00000000   sched_yield
0002dfe4  00010216 R_ARM_JUMP_SLOT   00000000   pthread_cond_signal
0002dfe8  00010316 R_ARM_JUMP_SLOT   00000000   pthread_cond_wait
0002dfec  00015d16 R_ARM_JUMP_SLOT   00000000   sleep
0002dff0  0001bb16 R_ARM_JUMP_SLOT   00000000   raise
0002dff4  0001bc16 R_ARM_JUMP_SLOT   00000000   __gnu_Unwind_Find_exid
0002dff8  0001c416 R_ARM_JUMP_SLOT   00000000   __cxa_begin_cleanup
0002dffc  0001c516 R_ARM_JUMP_SLOT   00000000   __cxa_type_match


A few examples of the skipped R_ARM_RELATIVE entries:
0002f280  00000017 R_ARM_RELATIVE   
0002f288  00000017 R_ARM_RELATIVE   
0002f28c  00000017 R_ARM_RELATIVE   
0002f2a4  00000017 R_ARM_RELATIVE   
0002f2ac  00000017 R_ARM_RELATIVE   




On Mon, Jun 9, 2014 at 11:39 AM, David Chisnall <theraven@sucs.org> wrote:
readelf or objdump should be able to tell you what the relocations that it's complaining about are.  Then we can look at fixing it.

David

On 8 Jun 2014, at 16:35, Ivan Vučica <ivan@vucica.net> wrote:

> Cheers,
>
> I've spotted this in Android logs:
>
> W/linker  (13137): libobjc.so has text relocations. This is wasting memory and is a security risk. Please fix.
>
> Any thoughts? Build procedure I used: https://bitbucket.org/ivucica/gnustep-android/src/ff0a98ab86d3ef5e400d3c5ec7b4700df139c326/phases/30-build-libobjc2.sh?at=default
> --
> Ivan Vučica
> ivan@vucica.net
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnustep




-- Sent from my Cray X1




--
Ivan Vučica
ivan@vucica.net

reply via email to

[Prev in Thread] Current Thread [Next in Thread]