Problems with ppc-elf-run?

Bill Gatliff bgat@billgatliff.com
Thu Jul 3 13:22:00 GMT 2003


Jay:


See, I *knew* it was something stupid on my part!  :^)

Now c works fine, but not c++:

$ ppc-elf-gcc -msim -fno-rtti -fno-exceptions -o hello hello.cpp -lstdc++
$ ppc-elf-run hello
hello: Caught signal 11 at address 0x10016558

Hmmm...


b.g.


Kulpinski, Jay wrote:

>On Thursday 03 July 2003 01:01 am, Bill Gatliff wrote:
>  
>
>>Guys:
>>
>>
>>I'm trying to run a "hello, world!" on ppc-elf-sim, without success:
>>
>>[bgat@mars ]$ ppc-elf-gcc -o hello hello.c -lc -lsim
>>/home/bgat/install/bin/../lib/gcc-lib/ppc-elf/3.2.3/../../../../ppc-elf/bin
>>/ld: warning: cannot find entry symbol _start; defaulting to 01800074
>>[bgat@mars]$ ppc-elf-run hello
>>Hello, world!
>>hello: Caught signal 11 at address 0x0
>>
>>
>>The undefined reference to _start concerns me, as does the (apparent)
>>need to specify -lc on the command line.
>>
>>Any suggestions?  I think I'm just missing something stupid, it's late...
>>
>>    
>>
>
>ppc-elf-gcc -msim -o hello hello.c 
>
>  
>
>>Regards,
>>
>>
>>b.g
>>
>.
>  
>

-- 
Bill Gatliff
Embedded GNU and Linux development, training
bgat@billgatliff.com



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list