This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
How to recover from symbol lookup error ?
- From: ashwani raina <ashwani dot raina at gmail dot com>
- To: Ravi Ramaseshan <ramaseshan dot ravi at gmail dot com>, mark at codesourcery dot com, binutils at sources dot redhat dot com, binutils at sourceware dot org
- Date: Wed, 8 Feb 2006 17:58:05 +0530
- Subject: How to recover from symbol lookup error ?
Hi
I am facing a problem which is as follows:
I have converted an PE file (DLL) of windows into ELF format (shared
object). This DLL contains some functions which are used by the
application on windows as well as linux but when the application on
linux is executed it gives a following error :
'application name' symbol lookup error : 'app name ' undefined
symbol 'symbol name'
But when i load that shared object inside the application by dlopen
it gives error :
nonloadable sections
Also i havent included the debug section in my application (when
converted from PE to ELF)
So no question of debugging . So i included one printf statement just
before the function call ( symbol imported from shared object) in
application. When executed ,it runs upto the printf statement after
that it terminates and gives the error of non loadable sections found.
Can anybody help ????
--
regards
ashwani
---
It is by logic that we prove but by intuition that we discover.......