https://bugs.llvm.org/show_bug.cgi?id=43350

            Bug ID: 43350
           Summary: [PowerPC32] segmentation fault on C++ exception
                    handling
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

On FreeBSD powerpc64 using 32 bit compatibility libraries (LIB32), C++
exception handling is broken when application is compiled with CLANG9 and
linked with LLD9.
Same application linked with BFD 2.17 works properly:

include <iostream>
using namespace std;

int main () {
  try
  {
    throw 20;
  }
  catch (int e)
  {
    cout << "An exception occurred. Exception Nr. " << e << '\n';
  }
  return 0;
}


root@alfredo-2:~/test/except # ./except32.bfd 
An exception occurred. Exception Nr. 20

root@alfredo-2:~/test/except # ./except32.lld 
Segmentation fault (core dumped)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to