This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: segmentation fault in ld
- From: Edgar Grimberg <edgar dot grimberg at rms dot ro>
- To: ecos-discuss at sources dot redhat dot com
- Date: Mon, 22 Nov 2004 14:34:00 +0200
- Subject: Re: [ECOS] segmentation fault in ld
- References: <41A1CFE5.8070507@rms.ro> <41A1D654.7070406@iv.ro>
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