This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
EH fails if libstdc++.so built with -ffunction-sections
- To: gcc-bugs at gcc dot gnu dot org
- Subject: EH fails if libstdc++.so built with -ffunction-sections
- From: Chip Salzenberg <chip at valinux dot com>
- Date: Fri, 14 Jul 2000 09:03:35 -0700
I have a program that dumps core when it throws an exception. The
program is dynamically linked to a v3 libstdc++.so.
The same program, staically linked, works fine.
I arranged to compile libstdc++.so with -ffunction-sections but not
-fdata-sections, The program still failed that shared object. So
apparently -ffunction-sections kills EH in shared libraries. I would
test without it, but -ffunction-sections is a standard part of the
build process these days.
--
Chip Salzenberg - a.k.a. - <chip@valinux.com>
"I wanted to play hopscotch with the impenetrable mystery of existence,
but he stepped in a wormhole and had to go in early." // MST3K