1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3# RUN: echo "SECTIONS { /DISCARD/ : { *(.bbb) } }" > %t.script
4# RUN: ld.lld --emit-relocs --script %t.script %t.o -o %t1
5# RUN: llvm-readobj -r %t1 | FileCheck %s
6
7# CHECK:      Relocations [
8# CHECK-NEXT: ]
9
10.section .aaa,"",@progbits
11.Lfoo:
12
13.section .bbb,"",@progbits
14.long .Lfoo
15