2 ; RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux -o %t.o %p/Inputs/dynsym.s
3 ; RUN: ld.lld %t.o -o %t.so -shared
4 ; RUN: llvm-as %s -o %t2.o
5 ; RUN: ld.lld %t2.o %t.so -o %t
6 ; RUN: llvm-readobj --dyn-syms %t | FileCheck %s
8 ; Check that we don't crash when gc'ing sections and printing the result.
9 ; RUN: ld.lld %t2.o %t.so --gc-sections --print-gc-sections \
11 ; RUN: llvm-readobj --dyn-syms %t | FileCheck %s
13 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
14 target triple = "x86_64-unknown-linux-gnu"
16 define void @_start() {
24 ; CHECK-NEXT: Binding:
27 ; CHECK-NEXT: Section: .text