1# REQUIRES: x86
2
3# Linker-synthesized sections shouldn't be gc'ed.
4
5# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/shared.s -o %t1
6# RUN: ld.lld %t1 -shared -o %t.so
7# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t2
8# RUN: ld.lld %t2 %t.so -build-id -dynamic-linker /foo/bar -o %t.out
9# RUN: llvm-readobj --sections %t.out | FileCheck %s
10
11# CHECK: Name: .interp
12# CHECK: Name: .note.gnu.build-id
13
14.globl _start
15_start:
16  ret
17