enabling gcc to compile both a.out and ELF bin.?

enabling gcc to compile both a.out and ELF bin.?

Post by JeongWoo Son (korn » Thu, 04 Apr 1996 04:00:00



Hello.

I installed ELF binary upgrade in my Linux box. I followed
the procedure in ELF howto document exactly, and everyrhing
seemed to be fine without any problem until the final step
described in ELF-howto. I tested if my gcc(2.7.2) could
compile both a.out binary and new ELF binary by compiling
'hello.c' program. It can compile hello.c into ELF binary
file well, but it cannot produce old a.out binary.
The elf-howto document says that after following the
installation procedure, gcc should be able to compile
both a.out and ELF binaries. What's wrong?

I tested gcc by the following commands:

i) ELF binary
$ gcc hello.c           ;this works fine!

ii) a.out binary
$ gcc -b i468-linuxaout hello.c
/usr/i486-linuxaout/bin/ld: cannot open -lc: No such file or directory
$

Thank you in advance.

                                        Sohn, Jung-woo
                                        aerospace eng.
                                        seoul national univ.
                                        south korea.
                                        http://plaza.snu.ac.kr/~sylph

 
 
 

1. gcc 2.7.x compile time for a.out and ELF

Does anyone know why compile times for ELF are about ten times
bigger than for a.out ?

Check it out:
   gcc -c -b i486-linuxaout test_file.c  ----- 3 seconds

   gcc -c -b i486-linux test_file.c ---------- 27 seconds

Using Slackware 3.0.0 with kernel 1.3.59 ELF in a Pentium 133, 32M,
SCSI Adaptec 2940.

Best regards,

                Pedro Carvalho


                Digital Processing of Speech
                Engineering and Computer Systems Institute
                INESC, Lisbon, Portugual

2. Getting data from particular fiend

3. Elf distribution: I cannot run a.out(ZMAGIC) but a.out(QMAGIC)???

4. Please explain concept "to source" a script

5. gcc a.out and ELF

6. PERL MANUAL??????

7. Questions: ELF&A.out, X Win with either one of these, GCC upgrade?

8. MacOS on ANS formerly running AIX?

9. GCC 2.7.0 - ELF and a.out are mutually exclusive?

10. How to compile to a.out on ELF system

11. HELP: compiling a.out under ELF

12. Problem compiling a.out after ELF ug

13. compiling a.out on elf system?