void *_Unwind_GetLanguageSpecificData(struct _Unwind_Context *c) {
  char msg1[] = "Aborting: ";
  char msg2[] = " called (C++ exception handling is disabled)\n";
  write(2, msg1, sizeof(msg1) - 1);
  write(2, __func__, sizeof(__func__) - 1);
  write(2, msg2, sizeof(msg2) - 1);
  abort();
}


x86 assembly (clang, -O0):
<_Unwind_GetLanguageSpecificData>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    0xebd(%rip),%rax
mov    %rax,-0x13(%rbp)
mov    0xeba(%rip),%ax
mov    %ax,-0xb(%rbp)
mov    0xeb2(%rip),%al
mov    %al,-0x9(%rbp)
lea    -0x50(%rbp),%rdi
lea    0xeca(%rip),%rsi
mov    $0x2e,%edx
call   1050 <memcpy@plt>
lea    -0x13(%rbp),%rsi
mov    $0x2,%edi
mov    $0xa,%edx
mov    $0x0,%al
call   1040 <write@plt>
mov    $0x2,%edi
lea    0xe7a(%rip),%rsi
mov    $0x1f,%edx
mov    $0x0,%al
call   1040 <write@plt>
lea    -0x50(%rbp),%rsi
mov    $0x2,%edi
mov    $0x2d,%edx
mov    $0x0,%al
call   1040 <write@plt>
call   1030 <abort@plt>

x86 assembly (clang, -O2):
<_Unwind_GetLanguageSpecificData>:
sub    $0x48,%rsp
movabs $0x676e6974726f6241,%rax
69 6e 67
mov    %rax,(%rsp)
movl   $0x203a67,0x7(%rsp)
movups 0xf0d(%rip),%xmm0
movups %xmm0,0x2e(%rsp)
movaps 0xef3(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xed7(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
mov    %rsp,%rsi
mov    $0xa,%edx
mov    $0x2,%edi
xor    %eax,%eax
call   1040 <write@plt>
lea    0xe92(%rip),%rsi
mov    $0x1f,%edx
mov    $0x2,%edi
xor    %eax,%eax
call   1040 <write@plt>
lea    0x10(%rsp),%rsi
mov    $0x2d,%edx
mov    $0x2,%edi
xor    %eax,%eax
call   1040 <write@plt>
call   1030 <abort@plt>

LLVM IR (-O0):
%struct._Unwind_Context = type opaque
@__const._Unwind_GetLanguageSpecificData.msg1 = [11 x i8] c"Aborting: \00"
@__const._Unwind_GetLanguageSpecificData.msg2 = [46 x i8] c" called (C++ exception handling is disabled)\0A\00"
@__func__._Unwind_GetLanguageSpecificData = [32 x i8] c"_Unwind_GetLanguageSpecificData\00"
define i8* @_Unwind_GetLanguageSpecificData(%struct._Unwind_Context* %0) {
%2 = alloca %struct._Unwind_Context*
%3 = alloca [11 x i8]
%4 = alloca [46 x i8]
store %struct._Unwind_Context* %0, %struct._Unwind_Context** %2
%5 = bitcast [11 x i8]* %3 to i8*
%6 = bitcast [46 x i8]* %4 to i8*
%7 = getelementptr inbounds [11 x i8], [11 x i8]* %3, i64 0, i64 0
%8 = call i32 (i32, i8*, i64, ...) bitcast (i32 (...)* @write to i32 (i32, i8*, i64, ...)*)(i32 2, i8* %7, i64 10)
%9 = call i32 (i32, i8*, i64, ...) bitcast (i32 (...)* @write to i32 (i32, i8*, i64, ...)*)(i32 2, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @__func__._Unwind_GetLanguageSpecificData, i64 0, i64 0), i64 31)
%10 = getelementptr inbounds [46 x i8], [46 x i8]* %4, i64 0, i64 0
%11 = call i32 (i32, i8*, i64, ...) bitcast (i32 (...)* @write to i32 (i32, i8*, i64, ...)*)(i32 2, i8* %10, i64 45)
unreachable
}

LLVM IR (-O2):
%struct._Unwind_Context = type opaque
@__const._Unwind_GetLanguageSpecificData.msg1 = [11 x i8] c"Aborting: \00"
@__const._Unwind_GetLanguageSpecificData.msg2 = [46 x i8] c" called (C++ exception handling is disabled)\0A\00"
@__func__._Unwind_GetLanguageSpecificData = [32 x i8] c"_Unwind_GetLanguageSpecificData\00"
define i8* @_Unwind_GetLanguageSpecificData(%struct._Unwind_Context* nocapture readnone %0) {
%2 = alloca [11 x i8]
%3 = alloca [46 x i8]
%4 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%5 = getelementptr inbounds [46 x i8], [46 x i8]* %3, i64 0, i64 0
%6 = call i32 (i32, i8*, i64, ...) bitcast (i32 (...)* @write to i32 (i32, i8*, i64, ...)*)(i32 2, i8* %4, i64 10)
%7 = call i32 (i32, i8*, i64, ...) bitcast (i32 (...)* @write to i32 (i32, i8*, i64, ...)*)(i32 2, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @__func__._Unwind_GetLanguageSpecificData, i64 0, i64 0), i64 31)
%8 = call i32 (i32, i8*, i64, ...) bitcast (i32 (...)* @write to i32 (i32, i8*, i64, ...)*)(i32 2, i8* %5, i64 45)
unreachable
}