Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions core/libs/tests/GuestAmprCppError.S
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
.globl GuestCatch
GuestCatch:
.cfi_startproc
#ifdef _WIN32
.cfi_personality 0x00, __gxx_personality_v0_nid_postfix
.cfi_lsda 0x00, .Lcatch_lsda
#else
.cfi_personality 0x9b, .Lcatch_personality
.cfi_lsda 0x1b, .Lcatch_lsda
#endif
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
Expand Down Expand Up @@ -34,10 +39,18 @@ GuestCatch:
#ifdef _WIN32
.section .rdata,"dr"
#else
.section .data.rel.ro,"aw",@progbits
.p2align 3
.Lcatch_personality:
.quad __gxx_personality_v0_nid_postfix
.section .rodata
#endif
.Lcatch_lsda:
#ifdef _WIN32
.byte 0xff, 0x80
#else
.byte 0xff, 0x9b
#endif
.uleb128 .Lcatch_types_end-.Lcatch_types_offset
.Lcatch_types_offset:
.byte 0x01
Expand All @@ -49,8 +62,13 @@ GuestCatch:
.uleb128 1
.Lcatch_calls_end:
.byte 1, 1, 2, 0
#ifdef _WIN32
.quad FixtureCatchType
.quad FixtureOtherType
#else
.long FixtureCatchType-.
.long FixtureOtherType-.
#endif
.Lcatch_types_end:
#ifndef _WIN32
.section .note.GNU-stack,"",@progbits
Expand Down
Loading