Avr-gcc Linker Input File Unused Because Linking Not Done

Hi,
I am cross-compiling a project for arm board. I am compiling some C source files + some libraries(c, C++). All objects files are getting created successfully but while linking for each object file i am getting error as below.
arm-unknown-linux-gnueabi-gcc: ./obj/dua.o: linker input file unused because linking not done
arm-unknown-linux-gnueabi-gcc: ./obj/duauser.o: linker input file unused because linking not done
arm-unknown-linux-gnueabi-gcc: ./obj/lldpcb.o: linker input file unused because linking not done
I am using following command in my makefile,
$(TARGET): $(LOCAL_LIBS) $(OBJS) GNUmakefile
@echo Making $@ ;
$(WHY)
if [ -f $@ ] ; then rm -f $@ ; fi
$(MAKEREVISION) $(REVISION_FILE) $(TARGET) $(REVISION) '$(DATE)'
$(CC) $(CPPFLAGS) -DOS_LINUX -DOS_DEBUG -O0 -g3 -Wall -fmessage-length=0 -MM -MP $(CGOPTS) $(CLOPTS) $(INC) -c $(REVISION_FILE) -o $(REVISION_OBJ)
$(CC) $(CFLAGS) $(CGOPTS) $(INC)
$(OBJS) $(REVISION_OBJ) $(LOCAL_LIBS) $(LIBS) -o $@
rm -f $(REVISION_FILE) $(REVISION_OBJ)
cp $(TARGET) ./bin/.
$(STRIP) ./bin/$(TARGET)
where,
CC = /usr/bin/gcc
CXX = /usr/bin/g++
STRIP = /usr/bin/strip
CFLAGS = -DOS_LINUX -DOS_DEBUG -Os -g -Wall -c -fmessage-length=0 -MM -MP -o
CXXFLAGS = -DACE_NLOGGING -DACE_NTRACE -O0 -g -fno-omit-frame-pointer
Can anyone guide me ???
Thanks in advance!
P: n/a
In article <11**********************@p77g2000hsh.googlegroups .com>,
geoplab <ge*****@gmail.comwrote:
>I have this error message when compiling mx_init.c by linking libxml
library as follow:
>gcc `xml2-config --cflags` -c mx_init.c `xml2-config --libs` -g -Wall
gcc: -lxml2: linker input file unused because linking not done
gcc: -lz: linker input file unused because linking not done
gcc: -lpthread: linker input file unused because linking not done
gcc: -lm: linker input file unused because linking not done
>How can I fix this error?
gcc and libraries are not really on topic in comp.lang.c, which
deals with the C language rather than with the specifics of
any implementation.
<OT>
Read the output. The libraries were not used because linking
was not done. Why was linking not done? Because you told it not
to link.
$ man gcc
-c Compile or assemble the source files, but do not link. The link-
ing stage simply is not done.
--
I was very young in those days, but I was also rather dim.
-- Christopher Priest
Linking

Linker input file unused because linking not done. Linker input file unused because linking not done input file input-file this linker was not linking could not be redeployed because UNUSED file-not done because input file Done Done linking File not found Linker linker linker Linker input C&C Ignored because not matching any filter. Championship manager 01 02 patch v3.9.68. A small word of caution: It is up to the target back-end, whether or not garbage collection on unused sections is done. So it happens to work on ARM and AVR, but I cannot guarantee that it work on other GCC targets. However, it should work on targets that are well supported, I think.