This is the mail archive of the crossgcc@sources.redhat.com 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] |
>-----Original Message----- >From: Mohammad Saleem [mailto:mohammad_saleem_1999@yahoo.com] >Sent: 03 September 2001 13:51 >/usr/local/powerpc-unknown-eabi/bin/ld: warning: >cannot find entry symbol _start; defaulting to >01800074 >/cygdrive/c/TEMP/ccR6SUgD.o: In function `main': >/cygdrive/c/TEMP/ccR6SUgD.o(.text+0x24): undefined >reference to `printf' >undefined reference to `__SDATA_START__' >undefined reference to `__CTOR_END__' >undefined reference to `__CTOR_LIST__' >undefined reference to `__CTOR_LIST__' >undefined reference to `__CTOR_END__' >undefined reference to `__SBSS_END__' >undefined reference to `__SDATA2_START__' >undefined reference to `__SBSS2_END__' Because powerpc-unknown-eabi is a general compiler suitable for all sorts of embedded environments using all different kinds of memory maps, it needs a further flag which tells it what kind of linker script and startup to use for the final .exe. Try using the -msim flag, which will create a file suitable to load into the ppc simulator that is included in Gdb. You should then be able to testrun your code in Gdb (powerpc-unknown-eabi-gdb, to be precise). DaveK -- " So far, science's crowning achievement, the Atomic Bomb, has not even been able to alleviate the misery and torture of endless centuries of world poverty." - George Hammond, self-proclaimed discoverer of the scientific proof of god. ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |