This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Thanks for your reply..Well, I already worked on that .. I am attaching the makefile for your reference... NAME = hello LOADADDR = 0xa0100000 # Endian ifndef ENDIAN ENDIAN = EL endif TOOLCHAIN = cygwin ifeq ($(TOOLCHAIN),cygwin) TOOLSDIR = /usr/local/comp/mips-elf/gcc-3.3.2 AS = $(TOOLSDIR)/bin/mips-elf-gcc CC = $(TOOLSDIR)/bin/mips-elf-gcc LD = $(TOOLSDIR)/bin/mips-elf-ld OD = $(TOOLSDIR)/bin/mips-elf-objdump OC = $(TOOLSDIR)/bin/mips-elf-objcopy endif RM = rm -f CFLAGS = -mips32 -G 0 -O2 -$(ENDIAN) -D$(ENDIAN) -Wa,-G0,-non_shared -I. .c.o: $(CC) -c $(CFLAGS) $< -o $@ .S.o: $(CC) -c $(CFLAGS) -D_ASSEMBLER_ $< -o $@ # # Files to compile # OBJS = \ hello.o # # Rule for making # all: $(OBJS) $(LD) -$(ENDIAN) -T elf32ebmip.xn -Ttext $(LOADADDR) -G 0 $(OBJS) -o $(NAME).elf -L ../lib/el -lc $(OD) -D $(NAME).elf > $(NAME).dis $(OC) -O srec $(NAME).elf $(NAME).rec clean: $(RM) *.o $(RM) *.dis $(RM) *.rec $(RM) *.elf $(RM) *~ When I use -lc it crashes with undefined refenrences to _lseek,_close,_read,_sbrk etc.. I cannot figure out why ? Even when I use this make file iwth MIPS SDE version from the MIPS website, it crashes with the same errors.... -- Sent from the Sourceware - crossgcc list forum at Nabble.com: http://www.nabble.com/undefined-reference-errror-using-gcc-3.3.2-t691583.html#a1826012 ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |