Link .o generated by GCC(arm-wince-pe) from Embeded VC ???

Simon Wu mountain_sprite@yahoo.com
Wed Dec 31 05:11:00 GMT 2003


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/



More information about the Gcc-help mailing list