1; REQUIRES: x86 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 7 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 \ 10; RUN: -o %t 11; RUN: llvm-readobj --dyn-syms %t | FileCheck %s 12 13target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" 14target triple = "x86_64-unknown-linux-gnu" 15 16define void @_start() { 17 call void @foo() 18 ret void 19} 20 21; CHECK: Name: foo 22; CHECK-NEXT: Value: 23; CHECK-NEXT: Size: 24; CHECK-NEXT: Binding: 25; CHECK-NEXT: Type: 26; CHECK-NEXT: Other: 27; CHECK-NEXT: Section: .text 28define void @foo() { 29 ret void 30} 31