Subject: port-i386/125: crt0.o core dumps if compiled with -fomit-frame-pointer
To: None <gnats-admin>
From: Brian de Alwis <bsdealwi@undergrad.math.uwaterloo.ca>
List: netbsd-bugs
Date: 02/12/1994 14:50:02
>Number: 125
>Category: port-i386
>Synopsis: crt0.o core dumps if compiled with -fomit-frame-pointer
>Confidential: no
>Severity: critical
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 12 14:50:02 1994
>Originator: Brian de Alwis
>Organization:
" independent"
>Release:
>Environment:
i386-33 w/ITT 387 NPX
-current of 2/6
System: NetBSD portia 0.9a PORTIA#13 i386
>Description:
Seeking a performance boost, I compiled everything with -O2
-fomit-frame-pointer. But since crt0.c makes explicit use of
%ebp, any programs linked with it would crash.
>How-To-Repeat:
Compile crt0.o with -fomit-frame-pointer and link a program
with it rather than with /usr/lib/crt0.o. Try to run it, and
you will get a segmentation fault.
>Fix:
Don't compile with -fomit-frame-pointer. It might be better
to explicitly set CFLAGS in src/lib/csu/i386/Makefile though.
>Audit-Trail:
>Unformatted:
------------------------------------------------------------------------------