Re: problem with dlsym to fetch address of some functions

2014-09-24 Thread Peter Rosin
On 2014-09-23 21:52, Paulo César Pereira de Andrade wrote: > 2014-09-23 16:40 GMT-03:00 Marco Atzeri : >> On 23/09/2014 20:43, Paulo César Pereira de Andrade wrote: >>> >>>Hi, >>> >>>Forgive me if this is expected. I am probably abusing dlsym >>> behavior on other systems. >> >> >> It will

Re: problem with dlsym to fetch address of some functions

2014-09-23 Thread Paulo César Pereira de Andrade
2014-09-23 16:40 GMT-03:00 Marco Atzeri : > On 23/09/2014 20:43, Paulo César Pereira de Andrade wrote: >> >>Hi, >> >>Forgive me if this is expected. I am probably abusing dlsym >> behavior on other systems. > > > It will be much more clear if you Sorry for not clear initial problem descr

Re: problem with dlsym to fetch address of some functions

2014-09-23 Thread Marco Atzeri
On 23/09/2014 20:43, Paulo César Pereira de Andrade wrote: Hi, Forgive me if this is expected. I am probably abusing dlsym behavior on other systems. It will be much more clear if you 1) produce a simple small complete test case, 2) explain the outcome you obtain (or not) 3) explain the

problem with dlsym to fetch address of some functions

2014-09-23 Thread Paulo César Pereira de Andrade
Hi, Forgive me if this is expected. I am probably abusing dlsym behavior on other systems. (gdb) p sprintf $1 = {} 0x10044b300 (gdb) p (void*)dlsym(NULL, "sprintf") $2 = (void *) 0x7708a738 The test driver I use for http://www.gnu.org/software/lightning calls dlsym in its pseudo assemble