1# REQUIRES: x86
2
3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4## Check that aabc is not included in text.
5# RUN: echo "SECTIONS { \
6# RUN:      .text : { *(.abc) } }" > %t.script
7# RUN: ld.lld -o %t.out --script %t.script %t
8# RUN: llvm-objdump --section-headers %t.out | \
9# RUN:   FileCheck %s
10# CHECK:      Sections:
11# CHECK-NEXT:  Idx Name          Size
12# CHECK-NEXT:    0               00000000
13# CHECK-NEXT:    1 .text         00000004
14# CHECK-NEXT:    2 aabc          00000004
15
16.text
17.section .abc,"ax",@progbits
18.long 0
19
20.text
21.section aabc,"ax",@progbits
22.long 0
23
24.globl _start
25_start:
26