mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
[RuntimeDyld] Make sure we emit MachO __eh_frame and __gcc_except_tab sections,
even if there are no references to them in the code. This allows exceptions thrown from JIT'd code to be caught by the JIT itself. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234975 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -31,6 +31,13 @@ insn3:
|
||||
movl $0, %eax
|
||||
retq
|
||||
|
||||
# Test processing of the __eh_frame section.
|
||||
# rtdyld-check: *{8}(section_addr(test_x86-64.o, __eh_frame) + 0x20) = eh_frame_test - (section_addr(test_x86-64.o, __eh_frame) + 0x20)
|
||||
eh_frame_test:
|
||||
.cfi_startproc
|
||||
retq
|
||||
.cfi_endproc
|
||||
|
||||
.comm y,4,2
|
||||
|
||||
.section __DATA,__data
|
||||
|
||||
Reference in New Issue
Block a user