1// REQUIRES: x86 2// RUN: llvm-mc -filetype=obj -triple=x86_64-windows-gnu %s -o %t.main.o 3// RUN: llvm-mc -filetype=obj -triple=x86_64-windows-gnu \ 4// RUN: %p/Inputs/eh_frame_terminator-otherfunc.s -o %t.otherfunc.o 5// RUN: llvm-mc -filetype=obj -triple=x86_64-windows-gnu \ 6// RUN: %p/Inputs/eh_frame_terminator-crtend.s -o %t.crtend.o 7// RUN: rm -f %t.otherfunc.lib 8// RUN: llvm-ar rcs %t.otherfunc.lib %t.otherfunc.o 9// RUN: lld-link -lldmingw %t.main.o %t.otherfunc.lib %t.crtend.o -out:%t.exe 10// RUN: llvm-objdump -s %t.exe | FileCheck %s 11 12 .text 13 .globl main 14main: 15 call otherfunc 16 ret 17 18 .globl mainCRTStartup 19mainCRTStartup: 20 call main 21 22 .section .eh_frame,"dr" 23 .byte 1 24 25// CHECK: Contents of section .eh_fram: 26// CHECK-NEXT: 140003000 010203 27