Re: dladdr in executable and shared object

2006-02-19 Thread Andreas Bachmann
Hi Joerg Ahh... Thank you. When I compile with the Sun Compiler, the dynamic linking section will be present by default. In the GNU compiler, as you wrote, it must be explicit specific. Andreas On Sun, 2006-02-19 at 18:22 +0100, [EMAIL PROTECTED] wrote: > On Sun, Feb 19, 2006 at 05:59:47PM +010

Re: dladdr in executable and shared object

2006-02-19 Thread joerg
On Sun, Feb 19, 2006 at 05:59:47PM +0100, Andreas Bachmann wrote: > I think the whole dynamic linking functions are buggy. First of all, calm down. Second, do your home work. By default the necessary dynamic linkage section is not present in executables, only shared libraries. Try -Wl,-E instead.

dladdr in executable and shared object

2006-02-19 Thread Andreas Bachmann
Hello! Want to have a runtime stacktrace like in a java environment. Why will dladdr get an incorrect dli_fname, when I execute a standalone (without shared object) program? http://bachi.te-clan.ch/freebsd/i386-freebsd-backtrace.c http://bachi.te-clan.ch/freebsd/i386-freebsd-backtrace.result When

Re: different behaviour on fbsd and linux

2006-02-19 Thread Erik Trulsson
On Sun, Feb 19, 2006 at 11:54:38AM +0100, Divacky Roman wrote: > On Sat, Feb 18, 2006 at 01:43:30PM -0800, John-Mark Gurney wrote: > > Divacky Roman wrote this message on Sat, Feb 18, 2006 at 18:39 +0100: > > > On Sat, Feb 18, 2006 at 06:21:52PM +0100, [EMAIL PROTECTED] wrote: > > > > On Sat, Feb 1

Re: different behaviour on fbsd and linux

2006-02-19 Thread Divacky Roman
On Sat, Feb 18, 2006 at 01:43:30PM -0800, John-Mark Gurney wrote: > Divacky Roman wrote this message on Sat, Feb 18, 2006 at 18:39 +0100: > > On Sat, Feb 18, 2006 at 06:21:52PM +0100, [EMAIL PROTECTED] wrote: > > > On Sat, Feb 18, 2006 at 06:17:18PM +0100, Divacky Roman wrote: > > > > execl("