Comment 6 for bug 1305315

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

When comparing the readelf output:
+000201e8 00000101 R_386_32 00008210 rtld_db_dlactivity
+
+Relocation section '.rel.plt' at offset 0x99c contains 5 entries:
+ Offset Info Type Sym.Value Sym. Name
+0001ffe0 00000107 R_386_JUMP_SLOT 00008210 rtld_db_dlactivity
+0001ffe4 00000307 R_386_JUMP_SLOT 00005ba0 free
+0001ffe8 00000507 R_386_JUMP_SLOT 00005c60 calloc
+0001ffec 00000207 R_386_JUMP_SLOT 00005b40 malloc
+0001fff0 00000407 R_386_JUMP_SLOT 00005c00 realloc

rtld_db_dlactivity is just a hook used by gdb so it can be notified about linker activity.

And how it is defined in linker.cpp:
174 extern "C" void __attribute__((noinline)) __attribute__((visibility("default"))) rtld_db_dlactivity();