dynamic link problem

Karcich, Ann ann.karcich@baesystems.com
Thu Sep 19 05:46:00 GMT 2002



I have an application compiled and running on Solaris 2.5.1 with gcc 2.8.1.

I have been porting the app to Slackware 8.0 with gcc 2.95.3.  It compiled
and
dynamically linked on Linux with just a few minor problems.  At runtime, 
it SEGV's while attempting to make a function call very early in the
program.
When I disassemble the code, the addresses of the function calls are 
<original address + 2>.  Functions without the "+2" after the address are
called and run successfully.  But as soon as one of the addresses gets
the +2 added, the program fails.  

Current compiler switches are -g -Wall and -i486.  The cpu is a Pentium III.

Thanks in advance for any help/suggestions.


Ann Karcich
Email: ann.karcich@baesystems.com



More information about the Gcc-help mailing list