This is the mail archive of the
c++-embedded@sourceware.cygnus.com
mailing list .
gcc vs g++ and linking with as
- To: c++-embedded at cygnus dot com
- Subject: gcc vs g++ and linking with as
- From: Chris Howard <choward at intellistor dot com>
- Date: Thu, 25 Jun 1998 15:29:51 +0000
- CC: crossgcc at cygnus dot com
- Organization: Fujitsu Computer Products of America
- Reply-To: choward at intellistor dot com
binutils 2.9
gcc/g++ 2.8.0
Host Sun Sparc Solaris 2.5
Target Motorola Coldfire (-m5200) a.out object format
---
Not using stdlib (-nostdlib)
We have some code in assembler, and some in C.
Compiling with as,gcc and linking with ld works fine.
Compiling with as,g++ and linking with ld does not work,
undefined symbols for those things written in assembler.
The .o files output from g++ compilation have exported symbols that
end in '__Fv' whereas the assembler output .o files don't have
'__Fv' on the symbols. Is that the problem? Is there
some way to make it work? What is __Fv?
An alternative might be to put the assembly code in
C/C++ wrapper functions. Any hints/comments that
would be appreciated also.
--
Chris Howard Fujitsu Computer Products of America
Longmont, Colorado