1# REQUIRES: x86 2 3# RUN: llvm-mc -triple=i686-windows-gnu %s -filetype=obj -o %t.main.o 4# RUN: llvm-mc -filetype=obj -triple=i686-windows-gnu \ 5# RUN: %p/Inputs/eh_frame_terminator-crtend.s -o %t.crtend.o 6 7# RUN: lld-link -lldmingw -entry:main %t.main.o %t.crtend.o -out:%t.exe 8# RUN: llvm-objdump -s %t.exe | FileCheck %s 9 10# Check that the contents of .eh_frame$foo was placed before .eh_frame from 11# crtend.o, even if the former had a section name suffix. 12 13# CHECK: Contents of section .eh_fram: 14# CHECK: 403000 4203 15 16 .text 17 .def _main; 18 .scl 2; 19 .type 32; 20 .endef 21 .globl _main 22 .p2align 4, 0x90 23_main: 24 call _foo 25 ret 26 27 .section .eh_frame$foo,"dr" 28 .linkonce discard 29 .byte 0x42 30 31 .def _foo; 32 .scl 2; 33 .type 32; 34 .endef 35 .section .text$foo,"xr",discard,foo 36 .globl _foo 37 .p2align 4 38_foo: 39 ret 40