• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// REQUIRES: x86
2// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3// RUN: ld.lld %t.o -o %t.so -shared
4// RUN: llvm-readobj -S --section-data %t.so | FileCheck %s
5
6        .section        .rodata.foo,"aM",@progbits,1
7        .align  16
8        .byte 0x42
9
10        .section        .rodata.bar,"aM",@progbits,1
11        .align  16
12        .byte 0x42
13
14        .section        .rodata.zed,"aM",@progbits,1
15        .align  16
16        .byte 0x41
17
18// CHECK:      Name: .rodata (
19// CHECK-NEXT: Type: SHT_PROGBITS
20// CHECK-NEXT: Flags [
21// CHECK-NEXT:   SHF_ALLOC
22// CHECK-NEXT:   SHF_MERGE
23// CHECK-NEXT: ]
24// CHECK-NEXT: Address:
25// CHECK-NEXT: Offset:
26// CHECK-NEXT: Size: 17
27// CHECK-NEXT: Link: 0
28// CHECK-NEXT: Info: 0
29// CHECK-NEXT: AddressAlignment: 16
30// CHECK-NEXT: EntrySize: 1
31// CHECK-NEXT: SectionData (
32// CHECK-NEXT:   0000: 42000000 00000000 00000000 00000000  |
33// CHECK-NEXT:   0010: 41                                   |
34// CHECK-NEXT: )
35