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] |
To All, I've been following the threads relating to building MIPS cross compilers. It has been extremely helpful. And special mention of Bill Gatliff's cross compiler guide, I would'nt have got as far as I have with out that! My build consists of binutils-2.11.2, gcc-3.0 and newlib-1.9.0. on a -i686-cygwin host configured for a mips-elf target. I have also built the same cross on a SuSE linux host with the same results. Using the following invocation of the compiler: $ mips-elf-gcc main.c crt0.S -nostdlib -I../include I get the following error: /cygdrive/c/WINNT/TEMP/ccEsdqTG.o: In function `main': main.c(.text+0xc): undefined reference to `__main' If I have a look at the assembly code that is generated (-S) I see that the main() function is labelled main: (which is the called by crt0.s) and after the C initialisations the following assembly line causes the error jal __main Needless to say I have no function __main. I would assume that by the prefix '__' that the label that is referred to is internal to the compiler. Am I under the false impression that the compiler has been successfully built? or should my crt0.s contain a __main function with initialisation code in it? If the latter is true is there any information describing the calling sequences assumed by the compiler? Any help would be greatful... PS. I have only managed to build using cygwin dll 1.1.4. and not on any 1.3.x. Has anyone else experienced such problems? Cheers Matt Welsford ------ 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] |