[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#224200: gcc-3.3 fails to generate EH_FRAME program-header



Package: gcc-3.3
Version: 1:3.3.3-0pre0
Severity: important
Tags: sid

It appears that the behavior of Debian gcc-3.3 is inconsistent with
that of Red Hat's gcc-3.2 when -fexceptions is specified.  Example:

On Debian/testing:

 $ cat t.c
 int main (int argc, char **argv) {
        printf ("hello\n");
 }
 $ gcc-3.3 -fexceptions t.c
 $ objdump --priv a.out |grep EH
 (no output)

On Red Hat 9:

 $ cat t.c
 int main (int argc, char **argv) {
        printf ("hello\n");
 }
 $ gcc -fexceptions t.c
 $ objdump --priv a.out |grep EH
 EH_FRAME off    0x00000420 vaddr 0x08048420 paddr 0x08048420 align 2**2

I believe this is a serious problem because it means that a DWARF2
unwinder will not be able to unwind across C code even though it was
compiled with -fexceptions.

	--david

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux napali 2.4.17-686 #2 Sat Dec 22 21:58:49 EST 2001 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages gcc-3.3 depends on:
ii  binutils                   2.14.90.0.7-3 The GNU assembler, linker and bina
ii  cpp-3.3                    1:3.3.3-0pre0 The GNU C preprocessor
ii  gcc-3.3-base               1:3.3.3-0pre0 The GNU Compiler Collection (base 
ii  libc6                      2.3.2.ds1-10  GNU C Library: Shared libraries an
ii  libgcc1                    1:3.3.3-0pre0 GCC support library

-- no debconf information




Reply to: