2015-10-21 06:08:49 +08:00
|
|
|
// REQUIRES: x86
|
|
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
2015-11-18 14:11:01 +08:00
|
|
|
// RUN: ld.lld %t.o -o %t.so -shared
|
2019-05-01 13:49:01 +08:00
|
|
|
// RUN: llvm-readobj --symbols -S %t.so | FileCheck %s
|
2015-10-21 06:08:49 +08:00
|
|
|
|
|
|
|
.section .rodata.cst4,"aM",@progbits,4
|
|
|
|
.short 0
|
|
|
|
foo:
|
|
|
|
.short 42
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: Name: .rodata
|
|
|
|
// CHECK-NEXT: Type: SHT_PROGBITS
|
|
|
|
// CHECK-NEXT: Flags [
|
|
|
|
// CHECK-NEXT: SHF_ALLOC
|
|
|
|
// CHECK-NEXT: SHF_MERGE
|
|
|
|
// CHECK-NEXT: ]
|
2019-03-19 07:49:18 +08:00
|
|
|
// CHECK-NEXT: Address: 0x20D
|
2015-10-21 06:08:49 +08:00
|
|
|
|
|
|
|
// CHECK: Name: foo
|
2019-03-19 07:49:18 +08:00
|
|
|
// CHECK-NEXT: Value: 0x20F
|