Article View: gnu.gcc.help
Article #42636Help with cross-compiler (Linux->go32)
From: Sean Christopher Farley
Date: Sat, 18 Nov 1995 00:00
Date: Sat, 18 Nov 1995 00:00
32 lines
1716 bytes
1716 bytes
I have gotten to the stage of trying to compile a cross compiler from Linux to go32. No go! Yes, pun intended. :) Basic compilation to object file works, but not linking. Result of a program that prints one file using the stdio.h header file: i386-go32-msdos-gcc -c -O2 -Wall test.c i386-go32-msdos-gcc -o go32test.exe test.o /usr/i386-go32-msdos/bin/ld: warning: cannot find entry symbol _start; defaulting to 000010a8 crt0.s(.text+0x3): undefined reference to `edata' exit.c(.text+0x2c): undefined reference to `djgpp_last_dtor' exit.c(.text+0x31): undefined reference to `djgpp_first_dtor' exit.c(.text+0x3d): undefined reference to `djgpp_first_dtor' exit.c(.text+0x44): undefined reference to `djgpp_first_dtor' Now my question is what source code should I have been using? I tried this: binutils-2.5.2l.20 (Do I explicitly need the source from DJGPP?) gcc-2.7.1 djcrx200-beta3 (This provides a crt0.o file.) For the libgcc1.a file I just created a blank archive without a hitch. I tried using the header files from djgpp v2 as well as the Linux headers. Both give the same result. What am I doing wrong? Thanks, Sean -- Sean C. Farley scf@cs.purdue.edu PGP 2.6.2 key using finger or WWW WWW Homepage is: http://www.cs.purdue.edu/people/farleysc
Technical Details
Message-ID:
<farleysc.816677026@lab33.cs.purdue.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,822e50c3cc04ef86,start X-Google-Attributes: gid11318c,public From: farleysc@cs.purdue.edu (Sean Christopher Farley) Subject: Help with cross-compiler (Linux->go32) Date: 1995/11/18 Message-ID: <farleysc.816677026@lab33.cs.purdue.edu> X-Deja-AN: 119586904 organization: Department of Computer Sciences, Purdue University newsgroups: gnu.gcc.help