Article View: gnu.gcc.help
Article #41931building a.out cross compiler for ELF - linux
From: bart hoekstra
Date: Fri, 02 Feb 1996 00:00
Date: Fri, 02 Feb 1996 00:00
47 lines
1855 bytes
1855 bytes
I'm not sure if my first post was done correctly, so I am reposting. I am running Slackware Linux 3.0 ELF and have successfully compiled gcc 2.7.2/g77-0.5.17 native compiler(ELF). However, I some OpenGL libraries that I occasionally need to link to that are in a.out format. I have tried to build a cross compiler to do this. I use the configure command: /configure --prefix=/usr --target=i486-linuxaout --build=i586-linux The compile appears to go fine until very near the end, when I get the message: -nostartfiles -nostdlib `./xgcc -B./ --print-libgcc-file-name` /usr/i486-linuxaout/bin/ld: final link failed: Nonrepresentable section on output make: *** [libgcc1-test] Error 1 I supplied an empty libgcc1.a, and that appeared to work OK. I installed all the a.out support stuff and compiler that came with slackware, which includes all the stuff in /usr/i486-linuxaout. The ld in the i486-linuxaout/bin directory is linked to ../../bin/ld. and the output of the objdump -i is: BFD header file version cygnus/linux-2.5.2l.11 elf32-i386 (header little endian, data little endian) i386 a.out-i386-linux (header little endian, data little endian) i386 coff-i386 (header little endian, data little endian) i386 ..etc So I don't think the loader is the problem. Any tips as to how I should proceed? My kernel version is 1.3.59. Bart Hoekstra Blackhawk Geosciences bart@blackhawkgeo.com
Technical Details
Message-ID:
<4eu3qa$9ae@news-2.csn.net>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,32dcaf0953ee8374,start X-Google-Attributes: gid11318c,public From: bart hoekstra <bart@blackhawkgeo.com> Subject: building a.out cross compiler for ELF - linux Date: 1996/02/02 Message-ID: <4eu3qa$9ae@news-2.csn.net> X-Deja-AN: 137734887 organization: SuperNet Inc. (303)-296-8202 Denver Colorado newsgroups: gnu.gcc.help