Problem compiling ld86 with GCC 2.2.2

Problem compiling ld86 with GCC 2.2.2

Post by Ben Lippo » Fri, 10 Jul 1992 14:15:44



Hi,

I'm trying to compile ld86 (from the bin86 distribution) but I am running
into a problem. The output produced by my compiled version produces files
which are 16 bytes longer than the (binary) ld86 which comes with the
binutils.tar.Z. I suspect the recent change in the a.out format has
something to do with this. It seems to me that instead of a 32-byte header
I now have an 48-byte header (see the octal dumps below). When trying to
run this I get the error-message:   Non-Minix header of 'boot'
I compiled ld86 with CFLAGS= -O6 -m486 -fstrenght-reduce -DBSD_A_OUT.
Configuration: Linux-0.96c, GCC v2.2.2.

Any clues?

Ben Lippolt
----
% ls -l boot*
-rwxr-xr-x   1 root     root          560 Jul  8 21:43 bootsect
-rwxr-xr-x   1 root     root          544 Jul  8 21:38 bootsect.old

% od bootsect | head -5
0000000  001401 002021 000060 000000 001000 000000 000000 000000
0000020  000000 000000 010000 000000 000000 000001 000000 000000
0000040  000000 000000 000000 000000 000000 000000 000000 000000
0000060  140270 107007 134330 110000 140216 000271 024401 024766
0000100  176377 122763 014752 000020 106220 135310 037764 154216

% od bootsect.old | head -5
0000000  001401 002020 000040 000000 001000 000000 000000 000000
0000020  000000 000000 000000 000000 000000 000001 000000 000000
0000040  140270 107007 134330 110000 140216 000271 024401 024766
0000060  176377 122763 014752 000000 106220 135310 037764 154216
0000100  140216 107120 104720 065324 007400 135641 000170 007544

 
 
 

1. Compiling AS86 and LD86 under AIX/PS2 1.2.1 with GCC 2.2.2

Hi,

Does anybody know which options i should use for gcc to compile AS86 and LD86
so they produce binaries BUILD likes ?

I've been trying to recompile the linux kernel on AIX, but build always
complains about the fact that the header of bootsect isn't a minix header. The
first few bytes of it look like :

01 03 11 04 30 00 00 00 00 02 00 00 00 00 00 00     ....0...........
00 00 00 00 00 10 00 00 00 00 01 00 00 00 00 00     ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00     ................

Greetings, Lode

2. Amazing Linux Driver story

3. as86/ld86 problems compiling 1.3.35 kernel

4. Need help with serial set-up

5. Problem with compiling kernel (as86, ld86)

6. How do you modify modules on LRP

7. compiling ld86 on a Sun SS1

8. PCI IDE DMA how to configure?

9. Did anyone compile ld86?

10. gcc compiling problem: configure: error: installation or configuration problem: C compiler cannot create executables.

11. Compiling gcc 2.7.2.1 with gcc 3.2 on redhat 8.0

12. GCC-i2.6.3 compiling (gcc with pentium optimiz's) PLEASE HELP US!!

13. OpenBSD, GCC, ElectricFence, and PThreads -- order on gcc compile line is significant?