public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Link .o generated by GCC(arm-wince-pe) from Embeded VC ???
@ 2003-12-31  5:11 Simon Wu
  0 siblings, 0 replies; only message in thread
From: Simon Wu @ 2003-12-31  5:11 UTC (permalink / raw)
  To: gcc-help

Hello, 
 
I compiled a .obj by GCC and tried to call it from
EVC. But the linker
does not support and print the following message:
-------------------Configuration: test3 - Win32 (WCE
ARM)
Release--------------------
Creating library...
perf.obj : warning LNK4078: multiple ".text" sections
found with
different attributes (E0000020)
--------------------Configuration: cmd - Win32 (WCE
ARM)
Release--------------------
Linking...
cmd.obj : error LNK2019: unresolved external symbol
CopyBlock
referenced in function WinMain
ARMRel/cmd.exe : fatal error LNK1120: 1 unresolved
externals
Error executing link.exe.

cmd.exe - 2 error(s), 1 warning(s)


the prototype of the function is right and I dump the
obj info with
objdump:
Obj generated by GCC:

../../test2/perf.obj: file format pe-arm-little
../../test2/perf.obj
architecture: armv3m, flags 0x00000038:
HAS_DEBUG, HAS_SYMS, HAS_LOCALS
start address 0x00000000

Characteristics 0x4105
relocations stripped
line numbers stripped
32 bit words

Obj generated by EVC:

vc_perf.obj: file format pe-arm-little
vc_perf.obj
architecture: armv3m, flags 0x0000003d:
HAS_RELOC, HAS_LINENO, HAS_DEBUG, HAS_SYMS, HAS_LOCALS
start address 0x00000000

Characteristics 0x100
32 bit words

It seems that the code generated by GCC has stripped
the RELOC info.
So EVC does not recognize it and how to keep the RELOC
info of obj
generated by GCC? Are there some good slutions?

Can you help me? Thank you !
 

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-12-31  5:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-31  5:11 Link .o generated by GCC(arm-wince-pe) from Embeded VC ??? Simon Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).