31 lines · plain
1; REQUIRES: x862; RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux -o %t.o %p/Inputs/dynsym.s3; RUN: ld.lld %t.o -o %t.so -shared4; RUN: llvm-as %s -o %t2.o5; RUN: ld.lld %t2.o %t.so -o %t6; RUN: llvm-readobj --dyn-syms %t | FileCheck %s7 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 %t11; RUN: llvm-readobj --dyn-syms %t | FileCheck %s12 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 void19}20 21; CHECK: Name: foo22; CHECK-NEXT: Value:23; CHECK-NEXT: Size:24; CHECK-NEXT: Binding:25; CHECK-NEXT: Type:26; CHECK-NEXT: Other:27; CHECK-NEXT: Section: .text28define void @foo() {29 ret void30}31