Skip to content

Commit

Permalink
ExceptionTracerLib.cpp: static link version facebook#1623
Browse files Browse the repository at this point in the history
  • Loading branch information
kvtb authored Oct 17, 2021
1 parent 04c479e commit a8f2f09
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions folly/experimental/exception_tracer/ExceptionTracerLib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,12 @@ void __real___cxa_throw(
void* __real___cxa_begin_catch(void* excObj) throw();
void __real___cxa_rethrow(void) __attribute__((__noreturn__));
void __real___cxa_end_catch(void);
void __real__ZSt17rethrow_exceptionNSt15__exception_ptr13exception_ptrE(std::exception_ptr ep)
__attribute__((__noreturn__));
void __wrap___cxa_throw(
void* thrownException, std::type_info* type, void (*destructor)(void*))
__attribute__((__noreturn__));
void* __wrap___cxa_begin_catch(void* excObj) throw();
void __wrap___cxa_rethrow(void) __attribute__((__noreturn__));
void __wrap___cxa_end_catch(void);
void __wrap__ZSt17rethrow_exceptionNSt15__exception_ptr13exception_ptrE(std::exception_ptr ep)
__attribute__((__noreturn__));
}

} // namespace __cxxabiv1
Expand Down Expand Up @@ -150,7 +146,13 @@ void __wrap___cxa_end_catch() {

namespace std {

void __real__ZSt17rethrow_exceptionNSt15__exception_ptr13exception_ptrE(std::exception_ptr ep);
extern "C" {
void __real__ZSt17rethrow_exceptionNSt15__exception_ptr13exception_ptrE(std::exception_ptr ep)
__attribute__((__noreturn__));
void __wrap__ZSt17rethrow_exceptionNSt15__exception_ptr13exception_ptrE(std::exception_ptr ep)
__attribute__((__noreturn__));
}

void __wrap__ZSt17rethrow_exceptionNSt15__exception_ptr13exception_ptrE(std::exception_ptr ep) {
// Mangled name for std::rethrow_exception
// TODO(tudorb): Dicey, as it relies on the fact that std::exception_ptr
Expand Down

0 comments on commit a8f2f09

Please sign in to comment.