This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
dynamic link problem
- From: "Karcich, Ann" <ann dot karcich at baesystems dot com>
- To: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 19 Sep 2002 08:46:35 -0400
- Subject: dynamic link problem
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