This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: collect2: ld terminated with signal 11 [Segmentation fault]


On Tue, Oct 26, 2004 at 10:06:31AM +0530, Vijay Padiyar wrote:
> Hi
> 
> We have built the eCos kernel and are trying to integrate our application
> programs with it, using a Makefile.
> 
> First we tried to build the simple 'Hello, eCos World!' program (hello.c)
> with this Makefile and succeeded after tweaking a few compiler and linker
> flags.
> 
> After this, when we included all our actual application files in the
> Makefile, we found that it compiles all the files correctly and generates
> the object files, but gives the following error while linking:
> 
> ------------------------------------------------------------------
> 
> /opt/ecos/gnutools/powerpc-eabi/bin/powerpc-eabi-gcc -Ur -Wl -L/working/18_1
> 0/netbootp_install/lib -Ttarget.ld -nostdlib
>  -mcpu=603e -g -nostdlib -Wl,--gc-sections -Wl,-static
> /devel/5X-Pilot/obj/ECOS/E1LineCard/E1LineCard.o /devel/5X-Pilot/
> lib/ECOS/E1LineCard.a /devel/5X-Pilot/lib/ECOS/5X-Pilot.a  -o
> /devel/5X-Pilot/bin/ECOS/E1LineCard.out
> collect2: ld terminated with signal 11 [Segmentation fault]
> make[1]: *** [/devel/5X-Pilot/bin/ECOS/E1LineCard.out] Error 1
> make[1]: Target `all' not remade because of errors.
> make[1]: Leaving directory `/devel/5X-Pilot/src/E1LineCard'
> make: *** [/devel/5X-Pilot/src/E1LineCard/.build] Error 2
> make: Target `default' not remade because of errors.
> 
> ------------------------------------------------------------------
> 
> I don't know if it's a problem with some compiler/linker flag that we're
> supposed to include or exclude, or if it's a problem with some application
> file. Because we're in the process of porting from VxWorks to eCos and
> haven't yet gone through ALL the application files, since there are a lot of
> them.

The linker also tends to sigfault when it gets an object file it does
not understand, eg an x86 object file mixed in with your powerpc
files. I suppose it might also not like an object file from the
VxWorks build.

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]