]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/linkerscript/repsection-va.s
Vendor import of lld trunk r291274:
[FreeBSD/FreeBSD.git] / test / ELF / linkerscript / repsection-va.s
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3
4 # RUN: echo "SECTIONS {.foo : {*(.foo.*)} }" > %t.script
5 # RUN: ld.lld -o %t1 --script %t.script %t
6 # RUN: llvm-objdump -section-headers %t1 | FileCheck %s
7 # CHECK:      Sections:
8 # CHECK-NEXT: Idx Name          Size      Address          Type
9 # CHECK-NOT: .foo
10 # CHECK:  .foo          00000008 {{.*}} DATA
11 # CHECK-NOT: .foo
12
13
14 .global _start
15 _start:
16  nop
17
18 .section .foo.1,"a"
19 foo1:
20  .long 0
21
22 .section .foo.2,"aw"
23 foo2:
24  .long 0