Article View: gnu.gcc.help
Article #42278Generation of i486-linuxaout objects under ELF
From: Michael Kelsey
Date: Wed, 20 Dec 1995 00:00
Date: Wed, 20 Dec 1995 00:00
32 lines
1967 bytes
1967 bytes
I am running GCC 2.7.0 on my laptop, under Linux (1.2.13 kernel, Slackware 3.0 installation). I have installed the Slackware "gcc270", "gccaout", "binutils", and "libaout" packages (among many others). I am using the "fort77" Perl script (replacing the built-in f77) which hooks up to f2c and gcc, to compile my Fortran code. When I specify the "-b i486-linuxaout" compiler flag, in order to get the correct leading underscore in all of my external function references, I do not get a proper object file. Instead, the compiler output is WRITTEN to "i486-linuxaout". Naturally, when my next source file is compiled, the output is also written to that file, instead of to the correct "foobar.o" object file. Trivially, my link step fails because there are no object files to be linked! Here is an example of what I'm talking about (eigen.f exists and is a valid Fortran 77 file, as I have verified on other platforms) % make eigen.o TARGET_ARCH=i486-linuxaout f77 -b i486-linuxaout -c eigen.f -o eigen.o eigen.f: eigen: % ls eigen* i486* eigen.f i486-linuxaout What am I doing wrong here? Anything? -- Mike Kelsey -- [ My opinions are not endorsed by SLAC, Caltech, or the US government ] "I've seen things you people wouldn't believe. Attack ships on fire off the shoulder of Orion. I've watched C-beams glitter in the dark near the Tannhauser Gate. All these memories will be lost in time, like tears in rain." -- Roy Baty
Technical Details
Message-ID:
<4b9l0g$2a7@gap.cco.caltech.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,7fb78faae1464ddd,start X-Google-Attributes: gid11318c,public From: kelsey@cithe501.cithep.caltech.edu (Michael Kelsey) Subject: Generation of i486-linuxaout objects under ELF Date: 1995/12/20 Message-ID: <4b9l0g$2a7@gap.cco.caltech.edu> X-Deja-AN: 122393829 distribution: world organization: HEP, California Institute of Technology newsgroups: gnu.gcc.help