llvm-project/lld/test/ELF/discard-merge-unnamed.s

17 lines
470 B
ArmAsm

// RUN: ld.lld %p/Inputs/discard-merge-unnamed.o -o %t2 -shared
// RUN: llvm-readobj -t %t2 | FileCheck %s
// Test that the unnamed symbol is SHF_MERGE is omitted.
// CHECK: Symbols [
// CHECK-NEXT: Symbol {
// CHECK-NEXT: Name: (0)
// CHECK-NEXT: Value: 0x0
// CHECK-NEXT: Size: 0
// CHECK-NEXT: Binding: Local
// CHECK-NEXT: Type: None
// CHECK-NEXT: Other: 0
// CHECK-NEXT: Section: Undefined
// CHECK-NEXT: }
// CHECK-NEXT: ]