[ Date Prev][ Date Next][ Thread Prev][ Thread Next][ Date Index][ Thread Index]
[arm-gnu] link obj from gcc with obj generated with armcc
- To: <arm-gnu@xxxxxxxxxxxxxxxx>
- Subject: [arm-gnu] link obj from gcc with obj generated with armcc
- From: "Cruise Huang" <Cruise.Huang@xxxxxxx>
- Date: Sat, 6 Sep 2008 21:18:24 +0900
hi Codesourcery
These days, I tried to link objects generated from gcc and RVCT with
gld(arm-none-linux-gnueabi-ld),
but the linker always report "undefined reference to ...."
but these refered function is compiled with RVCT.
can you help me to handle this?
the below is my commands
arm-none-linux-gnueabi-gcc -Wall -DWMOPS=0 -O4 -D__MSDOS__
-march=armv5te -mlittle-endian -c coder.cp
the flag for armcc is
CFLAGS_4LINUX=--gnu --enum_is_int --library_interface=aeabi_glibc \
--c99 -J$(RVCTHEADERS),$(GLIBC_HEADERS),$(RVCT31INC)
--wchar32 \
--no_hide_all --apcs /interwork --bss_threshold=0 \
--preinclude linux_rvct.h --cpu 5TE
the result found the functions refered in coder.cp( defined in other c
files, which is compiled with armcc)
can you tell me how to configure the flag of gcc to make it linkable to
obj from arm (since they are EABI-compliant)
thanks
Cruise Huang
ARM Shanghai Office
Cell:15921037468
Tel:021-62290729-27
------------------------
--
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
|