This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

EH fails if libstdc++.so built with -ffunction-sections


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]