login
Header Space

 
 

Segmentation faults using gcc2.2.2 HELP

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
Date: Tuesday, June 30, 1992 - 4:31 pm

Before I am jumped on, I HAVE read the documentation for gcc2.2.2.  I
recently compiled the kernel for 0.96bpl2 and am able to boot off the
image.  However, nothing else that I compile using gcc2.2.2 will work.
I tried a five line program which simply outputs a line of text and
recieved the following error:
        general protection: 0000
        EIP:    000f:04000000
        EFLAGS: 00010286
        ESP:    0017:03BFFCBC
        fs: 0017
        base: 24000000, limit: 04000000
        Stack: 00003501 00000400 000071F8 FFFFFFFF
        Pid: 389, process nr: 9
        general protection: 0000
        EIP:    0008:0000C809
        EFLAGS: 00010246
        ESP:    0017:03BFFCBC
        fs: 0017
        base: 24000000, limit: 04000000
        Pid: 389, process nr: 9
        64 8a 04 0b 0f a1 88 44 24 08
        Segmentation fault

I am clueless as to what all of this means.  However, I am getting essentialy the same error for every program that I compile under gcc2.2.2.  I am totally confused due to the fact that the kernel seemed to compile fine.
        I am not totally sure that I have built the kernel correctly.  I copied the image to a floppy disk.  And from there changed the bytes at offset 508 and 509 in the bootimage to use /dev/hda2.  
        What am I doing wrong???
                
--
Mark Alston
c-amb@math.utah.edu

        "Don't try this at home, kids.  This should be done only by
        trained, professional idiots."          --Plucky
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Segmentation faults using gcc2.2.2 HELP, Mark B. Alston, (Tue Jun 30, 4:31 pm)
speck-geostationary