brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · f920751 Raw
40 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -triple=i686-windows-gnu %s -filetype=obj -o %t.main.o4# RUN: llvm-mc -filetype=obj -triple=i686-windows-gnu \5# RUN:   %p/Inputs/eh_frame_terminator-crtend.s -o %t.crtend.o6 7# RUN: lld-link -lldmingw -entry:main %t.main.o %t.crtend.o -out:%t.exe8# RUN: llvm-objdump -s %t.exe | FileCheck %s9 10# Check that the contents of .eh_frame$foo was placed before .eh_frame from11# crtend.o, even if the former had a section name suffix.12 13# CHECK: Contents of section .eh_fram:14# CHECK:  403000 420315 16        .text17        .def            _main;18        .scl            2;19        .type           32;20        .endef21        .globl          _main22        .p2align        4, 0x9023_main:24        call            _foo25        ret26 27        .section        .eh_frame$foo,"dr"28        .linkonce       discard29        .byte           0x4230 31        .def            _foo;32        .scl            2;33        .type           32;34        .endef35        .section        .text$foo,"xr",discard,foo36        .globl          _foo37        .p2align        438_foo:39        ret40