libctf: impose an ordering on conflicting types
[binutils-gdb.git] / ld / testsuite / ld-ctf / diag-wrong-magic-number-mixed.d
1 #as:
2 #source: diag-wrong-magic-number.s
3 #source: B.c
4 #ld: -shared --ctf-variables
5 #name: Diagnostics - Wrong magic number mixed with valid CTF sections
6 #warning: CTF section in .* not loaded; its types will be discarded: Buffer does not contain CTF data
7
8 .*: +file format .*
9
10 Contents of CTF section .ctf:
11
12 Header:
13 Magic number: 0xdff2
14 Version: 4 \(CTF_VERSION_3\)
15 #...
16 Variable section: 0x0 -- 0x17 \(0x18 bytes\)
17 Type section: 0x18 -- 0x83 \(0x6c bytes\)
18 String section: .*
19
20 Labels:
21
22 Data objects:
23
24 Function objects:
25
26 Variables:
27 #...
28 b -> 0x[0-9a-f]*: struct B \(.*
29 #...
30 Types:
31 #...
32 0x[0-9a-f]*: struct B \(.*
33 *\[0x0\] \(ID 0x[0-9a-f]*\) \(kind 6\) struct B \(.*
34 *\[0x0\] \(ID 0x[0-9a-f]*\) \(kind 3\) struct C \* c \(.*
35 #...
36 Strings:
37 0x0:
38 #...
39 0x[0-9a-f]*: B
40 #...