This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
i386 `-fPIC -fexceptions'
- To: gcc-bugs at gcc dot gnu dot org
- Subject: i386 `-fPIC -fexceptions'
- From: "Golubev I. N." <gin at mo dot msk dot ru>
- Date: Thu, 28 Jun 2001 15:16:00 (GMT)
>Release: 3.0
target: i586-pc-sco3.2v5.0.2
as: binutils-2.11
This supplements <02473b3b381b35-gin@mo.msk.ru> (gnats id 3460).
The simplest command that reproduces failure which occurs when
compiling `unwind-dw2.c' is
./xgcc -B./ -fPIC -fexceptions
run in gcc build dir on cpp output:
extern void abort(void);
static void
f (void)
{
abort ();
}
This generates asm:
.type f,@function
f:
.LFB1:
; ...
.section .eh_frame, "aw"
; ...
.long .LFB1@GOTOFF
gas loses on the last string.
gcc-2.95.3 with the same options generates just
.long .LFB1
in `.eh_frame', and gas wins.
How new call stack unwinding code works, how it finds .eh_frame data
for program counters in shared objects and what it expects to find
there, I do not know.