http://sourceware.org/bugzilla/show_bug.cgi?id=13442

             Bug #: 13442
           Summary: gold screws up exception handling with --incremental
                    flag
           Product: binutils
           Version: 2.22
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
        AssignedTo: i...@airs.com
        ReportedBy: naes...@gmail.com
                CC: ccout...@google.com
    Classification: Unclassified
              Host: i486-linux-gnu


For example, take this program:

% cat demo.cc
#include <exception>
#include <cstdio>

using namespace std;

main ()
{
    try {
        throw exception();
    }
    catch (exception &e) {
        printf("%s\n", e.what());
    }
}

// ------ 8< ------

and try this:

% g++ -o demo demo.cc -Wl,--incremental-full
% ./demo
terminate called after throwing an instance of 'std::exception'
  what():  std::exception
zsh: abort      ./demo


Versions and such:

% uname -a
Linux hydrogen 2.6.30-1-686 #1 SMP Sat Aug 15 19:11:58 UTC 2009 i686 GNU/Linux

% g++ --version
g++ (Debian 4.6.1-15) 4.6.1

% gold --version
GNU gold (GNU Binutils for Debian 2.22) 1.11

The C++ library also posesses Debian version 4.6.1-15.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to