Hi,
I've found that when libmpatrol.so is dynamically linked in or preloaded
no symbol information is read from other dynamically linked in libs.Hence
the backtrace in the logs doesnt show the symbols defined in the other libs.
eg.
-------------------------------------------------------
ALLOC: calloc (51, 40 bytes, 4 bytes) [-|-|-]
0xB7FE0485 ???
0xB7FE049E ???
0x0804857F main+59 at /home/aragorn/test/main.c:10
0xB7DE5EBC ???
0x080484C1 _start+33
-----------------------------------------------------------
as opposed to when libmpatrol.a is linked in
--------------------------------------------------------------
ALLOC: calloc (781, 40 bytes, 4 bytes) [foo2|/home/aragorn/test/test2.c|6]
0xB7F37485 foo2+25 at /home/aragorn/test/test2.c:6
0xB7F3749E foo+17 at /home/aragorn/test/test2.c:14
0x0804999F main+59 at /home/aragorn/test/main.c:10
0xB7C5DEBC ???
0x080498E1 _start+33
-------------------------------------------------------------
I tracked this down to __mp_addextsymbols in symbols.c and found that whenever
libmpatrol.so is used the DT_DEBUG tag doesnt show up in the stucture pointed to
by the _DYNAMIC symbol. Any idea what could be the problem ?
or any thoughts on how to work around this ?
I found this (http://tech.groups.yahoo.com/group/mpatrol/message/644)
mail while looking through the archives.
..but that doesnt have a solution either.. patch2 is no use to me as yet.
my system config is as follows:
-----------------------------------------
aragorn@anduril:~$ uname -a
Linux anduril 2.6.20-12-generic #2 SMP Wed Mar 21 20:55:46 UTC 2007
i686 GNU/Linux
--
and my distro is Ubuntu Feisty
I'm using mpatrol 1.4.8 configured to run with bfd.
cheers,
Ashwin Pathmudi.