ld: Update function prototypes for compilers defaulting to -std=gnu23
[binutils-gdb.git] / ld / testsuite / ld-ctf / data-func-conflicted-vars.d
blob4e570c6a61a37a079dcdd106be24e0016b2062b1
1 #as:
2 #cc: -O2
3 #source: data-func-1.c
4 #source: data-func-2.c
5 #objdump: --ctf
6 #ld: -shared -s --ctf-variables
7 #name: Conflicted data syms, partially indexed, stripped, with variables
9 .*: +file format .*
11 Contents of CTF section \.ctf:
13 Header:
14 Magic number: 0xdff2
15 Version: 4 \(CTF_VERSION_3\)
16 #...
17 Data object section: .* \(0x[1-9a-f][0-9a-f]* bytes\)
18 Function info section: .* \(0x[1-9a-f][0-9a-f]* bytes\)
19 Object index section: .* \(0xc bytes\)
20 Variable section: .* \(0x10 bytes\)
21 Type section: .* \(0x118 bytes\)
22 String section: .*
23 #...
24 Data objects:
25 bar -> 0x[0-9a-f]*: \(kind 6\) struct var_3 \(size 0x[0-9a-f]*\) \(aligned at 0x[0-9a-f]*\)
26 var_1 -> 0x[0-9a-f]*: \(kind 10\) foo_t \(size 0x[0-9a-f]*\) \(aligned at 0x[0-9a-f]*\) -> .*
27 var_666 -> 0x[0-9a-f]*: \(kind 3\) foo_t \* \(size 0x[0-9a-f]*\) \(aligned at 0x[0-9a-f]*\) -> .*
29 Function objects:
30 func_[0-9]* -> 0x[0-9a-f]*: \(kind 5\) void \*\(\*\) \(const char \*restrict, int \(\*\)\(\*\) \(const char \*\)\) \(aligned at 0x[0-9a-f]*\)
31 #...
32 Variables:
33 funcs -> .*
34 other_func -> .*
35 #...
36 Types:
37 #...
38 .*: \(kind 6\) struct var_3 .*
39 #...
40 CTF archive member: .*/data-func-1\.c:
42 Header:
43 Magic number: 0xdff2
44 Version: 4 \(CTF_VERSION_3\)
45 #...
46 Parent name: \.ctf
47 Compilation unit name: .*/data-func-1\.c
48 Data object section: .* \(0x[1-9a-f][0-9a-f]* bytes\)
49 Type section: .* \(0xc bytes\)
50 String section: .*
52 Labels:
54 Data objects:
55 var_[0-9]* -> 0x80000001*: \(kind 10\) foo_t \(size 0x[0-9a-f]*\) \(aligned at 0x[0-9a-f]*\) -> .*
56 var_[0-9]* -> 0x80000001*: \(kind 10\) foo_t \(size 0x[0-9a-f]*\) \(aligned at 0x[0-9a-f]*\) -> .*
57 var_[0-9]* -> 0x80000001*: \(kind 10\) foo_t \(size 0x[0-9a-f]*\) \(aligned at 0x[0-9a-f]*\) -> .*
58 var_[0-9]* -> 0x80000001*: \(kind 10\) foo_t \(size 0x[0-9a-f]*\) \(aligned at 0x[0-9a-f]*\) -> .*
59 var_[0-9]* -> 0x80000001*: \(kind 10\) foo_t \(size 0x[0-9a-f]*\) \(aligned at 0x[0-9a-f]*\) -> .*
60 var_[0-9]* -> 0x80000001*: \(kind 10\) foo_t \(size 0x[0-9a-f]*\) \(aligned at 0x[0-9a-f]*\) -> .*
61 var_[0-9]* -> 0x80000001*: \(kind 10\) foo_t \(size 0x[0-9a-f]*\) \(aligned at 0x[0-9a-f]*\) -> .*
62 var_[0-9]* -> 0x80000001*: \(kind 10\) foo_t \(size 0x[0-9a-f]*\) \(aligned at 0x[0-9a-f]*\) -> .*
63 #...
64 Function objects:
66 Variables:
68 Types:
69 0x80000001: \(kind 10\) foo_t .* -> .* int .*
70 #...