aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-ctf/slice.d
blob: b493ce05c7572374d1bfe5e1dcf18489e2c22584 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#as:
#source: slice.c
#objdump: --ctf=.ctf
#ld: -shared --ctf-variables
#name: Slice

.*: +file format .*

Contents of CTF section .ctf:

  Header:
    Magic number: dff2
    Version: 4 \(CTF_VERSION_3\)
#...
    Compilation unit name: .*slice.c
#...
    Data object section:	.* \(0x4 bytes\)
    Type section:	.* \(0x9c bytes\)
    String section:	.*
#...
  Data objects:
    slices -> struct slices
#...
  Types:
#...
     [0-9a-f]*: struct slices \(size 0x[0-9a-f]*\)
        \[0x0\] \(ID 0x[0-9a-f]*\) \(kind 6\) struct slices \(aligned at 0x1\)
            \[0x0\] \(ID 0x[0-9a-f]*\) \(kind 1\) int  one:1 \(aligned at 0x1, format 0x1, offset:bits 0x0:0x1\)
            \[0x1\] \(ID 0x[0-9a-f]*\) \(kind 1\) int  two:2 \(aligned at 0x1, format 0x1, offset:bits 0x1:0x2\)
            \[0x3\] \(ID 0x[0-9a-f]*\) \(kind 1\) int  six:6 \(aligned at 0x1, format 0x1, offset:bits 0x3:0x6\)
            \[0x9\] \(ID 0x[0-9a-f]*\) \(kind 1\) int  ten:10 \(aligned at 0x2, format 0x1, offset:bits 0x9:0xa\)
#...