Bug#224200: gcc-3.3 fails to generate EH_FRAME program-header
gcc-3.3 is configured with --enable-sjlj-exceptions (done to keep
compatibility with gcc-3.2). I don't know if the dwarf2 unwinder will
work with this setup.
David Mosberger writes:
> 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.
Reply to: