2020-11-20 21:34:04 +08:00
|
|
|
#as:
|
|
|
|
#source: data-func-1.c
|
|
|
|
#source: data-func-2.c
|
|
|
|
#objdump: --ctf=.ctf
|
|
|
|
#ld: -shared -s
|
|
|
|
#name: Conflicted data syms, partially indexed, stripped
|
|
|
|
|
|
|
|
.*: +file format .*
|
|
|
|
|
|
|
|
Contents of CTF section \.ctf:
|
|
|
|
|
|
|
|
Header:
|
2021-01-05 21:25:56 +08:00
|
|
|
Magic number: 0xdff2
|
2020-11-20 21:34:04 +08:00
|
|
|
Version: 4 \(CTF_VERSION_3\)
|
|
|
|
#...
|
|
|
|
Data object section: .* \(0xc bytes\)
|
|
|
|
Function info section: .* \(0x40 bytes\)
|
|
|
|
Object index section: .* \(0xc bytes\)
|
2020-11-20 21:34:04 +08:00
|
|
|
Type section: .* \(0xe8 bytes\)
|
2020-11-20 21:34:04 +08:00
|
|
|
String section: .*
|
|
|
|
#...
|
|
|
|
Data objects:
|
2021-01-05 21:25:56 +08:00
|
|
|
bar -> 0x[0-9a-f]*: struct var_3 \(size 0x[0-9a-f]*\)
|
|
|
|
var_1 -> 0x[0-9a-f]*: foo_t \(size 0x[0-9a-f]*\) -> .*
|
|
|
|
var_666 -> 0x[0-9a-f]*: foo_t \* \(size 0x[0-9a-f]*\) -> .*
|
2020-11-20 21:34:04 +08:00
|
|
|
|
|
|
|
Function objects:
|
2021-01-05 21:25:56 +08:00
|
|
|
func_[0-9]* -> 0x[0-9a-f]*: void \*\(\*\) \(const char \*restrict, int \(\*\)\(\*\) \(const char \*\)\)
|
2020-11-20 21:34:04 +08:00
|
|
|
#...
|
|
|
|
Types:
|
|
|
|
#...
|
|
|
|
.*: struct var_3 .*
|
|
|
|
#...
|
|
|
|
CTF archive member: .*/data-func-1\.c:
|
|
|
|
|
|
|
|
Header:
|
2021-01-05 21:25:56 +08:00
|
|
|
Magic number: 0xdff2
|
2020-11-20 21:34:04 +08:00
|
|
|
Version: 4 \(CTF_VERSION_3\)
|
|
|
|
#...
|
|
|
|
Parent name: \.ctf
|
|
|
|
Compilation unit name: .*/data-func-1\.c
|
|
|
|
Data object section: .* \(0xfa4 bytes\)
|
|
|
|
Type section: .* \(0xc bytes\)
|
|
|
|
String section: .*
|
|
|
|
|
|
|
|
Labels:
|
|
|
|
|
|
|
|
Data objects:
|
2021-01-05 21:25:56 +08:00
|
|
|
var_[0-9]* -> 0x[0-9a-f]*: foo_t \(size 0x[0-9a-f]*\) -> .*
|
|
|
|
var_[0-9]* -> 0x[0-9a-f]*: foo_t \(size 0x[0-9a-f]*\) -> .*
|
|
|
|
var_[0-9]* -> 0x[0-9a-f]*: foo_t \(size 0x[0-9a-f]*\) -> .*
|
|
|
|
var_[0-9]* -> 0x[0-9a-f]*: foo_t \(size 0x[0-9a-f]*\) -> .*
|
|
|
|
var_[0-9]* -> 0x[0-9a-f]*: foo_t \(size 0x[0-9a-f]*\) -> .*
|
|
|
|
var_[0-9]* -> 0x[0-9a-f]*: foo_t \(size 0x[0-9a-f]*\) -> .*
|
|
|
|
var_[0-9]* -> 0x[0-9a-f]*: foo_t \(size 0x[0-9a-f]*\) -> .*
|
2020-11-20 21:34:04 +08:00
|
|
|
#...
|
|
|
|
Function objects:
|
|
|
|
|
|
|
|
Variables:
|
|
|
|
|
|
|
|
Types:
|
2021-01-05 21:25:56 +08:00
|
|
|
0x80000001: foo_t .* -> .* int .*
|
2020-11-20 21:34:04 +08:00
|
|
|
#...
|