1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3# RUN: ld.lld -o %t1 %t
4# RUN: llvm-objdump --section-headers %t1 | FileCheck %s
5# RUN: ld.lld -r -o %t1 %t
6# RUN: llvm-objdump --section-headers %t1 | FileCheck --check-prefix=RELOCATABLE %s
7
8# CHECK-NOT:      .aaa
9# RELOCATABLE:    .aaa
10
11.globl _start
12_start:
13  jmp _start
14
15.section .aaa,"ae"
16 .quad .bbb
17
18.section .bbb,"a"
19 .quad 0
20