[clang-tidy][use-internal-linkage]fix false positives for global overloaded operator...
[llvm-project.git] / lld / test / COFF / eh_frame_suffix_sorting.s
blobf920751a9a202f609c98229fa9593c9921ea57a7
1 # REQUIRES: x86
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
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
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.
13 # CHECK: Contents of section .eh_fram:
14 # CHECK: 403000 4203
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
27 .section .eh_frame$foo,"dr"
28 .linkonce discard
29 .byte 0x42
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