This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]