]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/compatible-section-types.s
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / compatible-section-types.s
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 // RUN: ld.lld -shared %t.o -o %t
4 // RUN: llvm-objdump -section-headers %t | FileCheck %s
5
6 // CHECK: .foo {{0*}}28
7
8 .section .foo, "aw", @progbits, unique, 1
9 .quad 0
10
11 .section .foo, "aw", @init_array, unique, 2
12 .quad 0
13
14 .section .foo, "aw", @preinit_array, unique, 3
15 .quad 0
16
17 .section .foo, "aw", @fini_array, unique, 4
18 .quad 0
19
20 .section .foo, "aw", @note, unique, 5
21 .quad 0