[ECOS] segmentation fault in ld
Edgar Grimberg
edgar.grimberg@rms.ro
Mon Nov 22 13:38:00 GMT 2004
Hi Jani,
Thanks for the reply. Yes, the files are all ARM objects. They are made
with a couple of makefiles like this one:
INSTALL_DIR=/home/edgar/mycvs/ecos/applib-ts/install
include $(INSTALL_DIR)/include/pkgconf/ecos.mak
XCXX = arm-elf-gcc
XLD = $(XCXX)
XOBJCOPY = arm-elf-objcopy
CXXFLAGS = -I$(INSTALL_DIR)/include
CXXFLAGS += $(ECOS_GLOBAL_CFLAGS) -g -O0
.PHONY: all clean
all:
$(XCXX) -c $(CXXFLAGS) hardwaredevicedrivers/lcddriver.cpp -o
bin/lcddriver.o
$(XCXX) -c $(CXXFLAGS) hardwaredevicedrivers/sed1335f.cpp -o
bin/sed1335f.o
and the output of
[edgar@wks-edgar bin]$ arm-elf-objdump -a *.o
is the following:
guiarea.o: file format elf32-littlearm
guibutton3d.o: file format elf32-littlearm
guibuttonflat.o: file format elf32-littlearm
guibutton.o: file format elf32-littlearm
guicombo.o: file format elf32-littlearm
guicomponent.o: file format elf32-littlearm
guicontainer.o: file format elf32-littlearm
guievent.o: file format elf32-littlearm
guiimage.o: file format elf32-littlearm
guilabel.o: file format elf32-littlearm
guipoint.o: file format elf32-littlearm
guitextedit.o: file format elf32-littlearm
lcddriver.o: file format elf32-littlearm
main.o: file format elf32-littlearm
sed1335f.o: file format elf32-littlearm
Best regards,
Edgar
Jani Monoses wrote:
>
>
> When I see this error it always means one of the objects is not for
> the arch ld is supposed to link. Are all those ARM objects?
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list