Symbol: foo
Type: R_X86_64_64
Symbols:
- Global:
- - Name: foo
\ No newline at end of file
+ - Name: foo
+ Binding: STB_GLOBAL
Symbol: foo
Type: R_X86_64_64
Symbols:
- Global:
- - Name: foo
+ - Name: foo
+ Binding: STB_GLOBAL
Type: R_ARM_THM_JUMP11
Symbols:
- Global:
- - Type: STT_FUNC
- Name: _start
- Value: 1
- Section: .text
- Local:
- - Type: STT_NOTYPE
- Name: "$t"
- Section: .text
- Value: 0
- Weak:
- - Type: STT_NOTYPE
- Name: undefined_weak
- Value: 0
-
+ - Type: STT_NOTYPE
+ Name: "$t"
+ Section: .text
+ Value: 0
+ - Type: STT_FUNC
+ Name: _start
+ Value: 1
+ Section: .text
+ Binding: STB_GLOBAL
+ - Type: STT_NOTYPE
+ Name: undefined_weak
+ Value: 0
+ Binding: STB_WEAK
- Offset: 0x0000000000000000
Type: R_ARM_V4BX
Symbols:
- Global:
- - Name: _start
- Section: .text
- Local:
- - Name: .text
- Type: STT_SECTION
- Section: .text
-DynamicSymbols:
+ - Name: .text
+ Type: STT_SECTION
+ Section: .text
+ - Name: _start
+ Section: .text
+ Binding: STB_GLOBAL
Symbol: foo
Type: R_X86_64_64
Symbols:
- Global:
- - Name: foo
\ No newline at end of file
+ - Name: foo
+ Binding: STB_GLOBAL
Content: '0111001017000000'
Symbols:
- Global:
- - Name: _start
- Section: .text
- - Name: bar
+ - Name: _start
+ Section: .text
+ Binding: STB_GLOBAL
+ - Name: bar
+ Binding: STB_GLOBAL
Symbol: _GLOBAL_OFFSET_TABLE_
Type: R_386_GOTPC
Symbols:
- Global:
- - Name: _GLOBAL_OFFSET_TABLE_
+ - Name: _GLOBAL_OFFSET_TABLE_
+ Binding: STB_GLOBAL
Symbol: _start
Type: R_386_PC16
Symbols:
- Global:
- - Name: _start
- Type: STT_FUNC
- Section: .text
- Value: 0x1234
- Size: 4
+ - Name: _start
+ Type: STT_FUNC
+ Section: .text
+ Value: 0x1234
+ Size: 4
+ Binding: STB_GLOBAL
Symbol: zed
Type: R_X86_64_64
Symbols:
- Global:
- - Name: zed
- Type: STT_FUNC
- Section: .text
- Value: 0x0
- Size: 8
+ - Name: zed
+ Type: STT_FUNC
+ Section: .text
+ Value: 0x0
+ Size: 8
+ Binding: STB_GLOBAL
Symbol: lulz
Type: R_X86_64_PC32
Symbols:
- Global:
- - Name: lulz
+ - Name: lulz
+ Binding: STB_GLOBAL
# CHECK: invalid relocated section index
Symbol: .text
Type: R_X86_64_NONE
Symbols:
- Local:
- - Name: .text
- Type: STT_SECTION
+ - Name: .text
+ Type: STT_SECTION
Symbol: foo
Type: R_X86_64_GOTTPOFF
Symbols:
- Global:
- - Name: foo
- Type: STT_TLS
- Section: .text
- Value: 0x12345
- Size: 4
+ - Name: foo
+ Type: STT_TLS
+ Section: .text
+ Value: 0x12345
+ Size: 4
+ Binding: STB_GLOBAL
+
\ No newline at end of file
- SectionOrType: 0xFF
- SectionOrType: 3
Symbols:
- Global:
- - Name: foo
+ - Name: foo
+ Binding: STB_GLOBAL
Type: ET_REL
Machine: EM_X86_64
Symbols:
- Global:
- - Name: bar
- Type: STT_FUNC
- Index: SHN_COMMON
+ - Name: bar
+ Type: STT_FUNC
+ Index: SHN_COMMON
+ Binding: STB_GLOBAL
## If an object contains a common symbol with alignment greater
## than UINT32_MAX, check we report it.
Type: ET_REL
Machine: EM_X86_64
Symbols:
- Global:
- - Name: bar
- Type: STT_FUNC
- Index: SHN_COMMON
- Value: 0x0000003F3F3F3F3F
+ - Name: bar
+ Type: STT_FUNC
+ Index: SHN_COMMON
+ Value: 0x0000003F3F3F3F3F
+ Binding: STB_GLOBAL
Symbol: zed
Type: R_X86_64_64
Symbols:
- Global:
- - Name: zed
- Type: STT_FUNC
- Section: .eh_frame
- Value: 0x0
- Size: 8
+ - Name: zed
+ Type: STT_FUNC
+ Section: .eh_frame
+ Value: 0x0
+ Size: 8
+ Binding: STB_GLOBAL
Symbol: _start
Type: 0xFF
Symbols:
- Global:
- - Name: _start
- Type: STT_FUNC
- Section: .text
- Value: 0x0
+ - Name: _start
+ Type: STT_FUNC
+ Section: .text
+ Value: 0x0
+ Binding: STB_GLOBAL
Symbol: foo
Type: 0x99
Symbols:
- Global:
- - Name: foo
+ - Name: foo
+ Binding: STB_GLOBAL
AddressAlign: 0x04
Content: "FFFFFFFFFFFFFFFF"
Symbols:
- Local:
- - Name: .text
- Type: STT_SECTION
- Section: .text
+ - Name: .text
+ Type: STT_SECTION
+ Section: .text
- SectionOrType: GRP_COMDAT
- SectionOrType: 12345
Symbols:
- Global:
- - Name: foo
+ - Name: foo
+ Binding: STB_GLOBAL
Info: 0
Type: SHT_SYMTAB
Symbols:
- Global:
- - Name: foo
+ - Name: foo
+ Binding: STB_GLOBAL
## sh_info has value 2 what says that non-local symbol `foo` is local.
## Check we report this case.
Info: 2
Type: SHT_SYMTAB
Symbols:
- Global:
- - Name: foo
+ - Name: foo
+ Binding: STB_GLOBAL
## sh_info has value 0xff what is larger than number of symbols in a .symtab.
## Check we report this case.
Info: 0xff
Type: SHT_SYMTAB
Symbols:
- Global:
- - Name: foo
+ - Name: foo
+ Binding: STB_GLOBAL
AddressAlign: 0x0000000000000010
Content: "00000000"
Symbols:
- Local:
- - Type: STT_NOTYPE
- Section: .symtab
+ - Type: STT_NOTYPE
+ Section: .symtab
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
Content: ''
Symbols:
- Global:
- - Name: bar
- Type: STT_TLS
- Section: .text
+ - Name: bar
+ Type: STT_TLS
+ Section: .text
+ Binding: STB_GLOBAL
Info: 1
Type: SHT_SYMTAB
DynamicSymbols:
- Local:
- - Name: foo
+ - Name: foo
Type: R_MIPS_JALR
Symbols:
- Local:
- - Name: T1
- Type: STT_FUNC
- Section: .text
- Value: 0
- Size: 4
- Global:
- - Name: __start
- Type: STT_FUNC
- Section: .text
- Value: 0
- Size: 4
+ - Name: T1
+ Type: STT_FUNC
+ Section: .text
+ Value: 0
+ Size: 4
+ - Name: __start
+ Type: STT_FUNC
+ Section: .text
+ Value: 0
+ Size: 4
+ Binding: STB_GLOBAL
Type: R_AARCH64_JUMP26
Symbols:
- Local:
- - Type: STT_FUNC
- Section: .text
- Name: foo
- Value: 0
- - Type: STT_FUNC
- Section: .text
- Name: bar
- Value: 4
+ - Type: STT_FUNC
+ Section: .text
+ Name: foo
+ Value: 0
+ - Type: STT_FUNC
+ Section: .text
+ Name: bar
+ Value: 4
Symbol: foo
Type: R_X86_64_64
Symbols:
- Global:
- - Name: foo
+ - Name: foo
+ Binding: STB_GLOBAL
Type: R_RISCV_BRANCH
Addend: -4096
Symbols:
- Local:
- - Name: .text
- Type: STT_SECTION
- Section: .text
- - Name: .data
- Type: STT_SECTION
- Section: .data
- - Name: .bss
- Type: STT_SECTION
- Section: .bss
- - Name: .reloc_max
- Type: STT_SECTION
- Section: .reloc_max
- - Name: L1
- Section: .reloc_max
- - Name: .reloc_min
- Type: STT_SECTION
- Section: .reloc_min
- - Name: L2
- Section: .reloc_min
- Global:
- - Name: _start
- Section: .text
+ - Name: .text
+ Type: STT_SECTION
+ Section: .text
+ - Name: .data
+ Type: STT_SECTION
+ Section: .data
+ - Name: .bss
+ Type: STT_SECTION
+ Section: .bss
+ - Name: .reloc_max
+ Type: STT_SECTION
+ Section: .reloc_max
+ - Name: L1
+ Section: .reloc_max
+ - Name: .reloc_min
+ Type: STT_SECTION
+ Section: .reloc_min
+ - Name: L2
+ Section: .reloc_min
+ - Name: _start
+ Section: .text
+ Binding: STB_GLOBAL
...
Type: R_RISCV_CALL
Addend: -4
Symbols:
- Local:
- - Name: .text
- Type: STT_SECTION
- Section: .text
- - Name: .data
- Type: STT_SECTION
- Section: .data
- - Name: .bss
- Type: STT_SECTION
- Section: .bss
- - Name: .reloc_neg
- Type: STT_SECTION
- Section: .reloc_neg
- - Name: L1
- Section: .reloc_neg
- Global:
- - Name: _start
- Section: .text
+ - Name: .text
+ Type: STT_SECTION
+ Section: .text
+ - Name: .data
+ Type: STT_SECTION
+ Section: .data
+ - Name: .bss
+ Type: STT_SECTION
+ Section: .bss
+ - Name: .reloc_neg
+ Type: STT_SECTION
+ Section: .reloc_neg
+ - Name: L1
+ Section: .reloc_neg
+ - Name: _start
+ Section: .text
+ Binding: STB_GLOBAL
...
AddressAlign: 0x0000000000000001
Content: 37C5DCFE130585A9
Symbols:
- Local:
- - Name: .text
- Type: STT_SECTION
- Section: .text
- - Name: .data
- Type: STT_SECTION
- Section: .data
- - Name: .bss
- Type: STT_SECTION
- Section: .bss
- - Name: .reloc_12345678
- Type: STT_SECTION
- Section: .reloc_12345678
- - Name: foo
- Value: 0x00000000FEDCBA98
- - Name: .reloc_fedcba98
- Type: STT_SECTION
- Section: .reloc_fedcba98
- Global:
- - Name: _start
- Section: .reloc_12345678
+ - Name: .text
+ Type: STT_SECTION
+ Section: .text
+ - Name: .data
+ Type: STT_SECTION
+ Section: .data
+ - Name: .bss
+ Type: STT_SECTION
+ Section: .bss
+ - Name: .reloc_12345678
+ Type: STT_SECTION
+ Section: .reloc_12345678
+ - Name: foo
+ Value: 0x00000000FEDCBA98
+ - Name: .reloc_fedcba98
+ Type: STT_SECTION
+ Section: .reloc_fedcba98
+ - Name: _start
+ Section: .reloc_12345678
+ Binding: STB_GLOBAL
...
Flags: [ SHF_WRITE, SHF_ALLOC ]
AddressAlign: 0x0000000000000001
Symbols:
- Local:
- - Name: .text
- Type: STT_SECTION
- Section: .text
- - Name: .data
- Type: STT_SECTION
- Section: .data
- - Name: .bss
- Type: STT_SECTION
- Section: .bss
- - Name: L1
- Section: .text
- - Name: L2
- Section: .text
- Value: 0x0000000000000004
- - Name: L3
- Section: .text
- Value: 0x0000000000000008
- - Name: L4
- Section: .text
- Value: 0x000000000000000C
- Global:
- - Name: _start
- Section: .text
+ - Name: .text
+ Type: STT_SECTION
+ Section: .text
+ - Name: .data
+ Type: STT_SECTION
+ Section: .data
+ - Name: .bss
+ Type: STT_SECTION
+ Section: .bss
+ - Name: L1
+ Section: .text
+ - Name: L2
+ Section: .text
+ Value: 0x0000000000000004
+ - Name: L3
+ Section: .text
+ Value: 0x0000000000000008
+ - Name: L4
+ Section: .text
+ Value: 0x000000000000000C
+ - Name: _start
+ Section: .text
+ Binding: STB_GLOBAL
...
Type: R_RISCV_RVC_JUMP
Addend: -2048
Symbols:
- Local:
- - Name: .text
- Type: STT_SECTION
- Section: .text
- - Name: .data
- Type: STT_SECTION
- Section: .data
- - Name: .bss
- Type: STT_SECTION
- Section: .bss
- - Name: .reloc_zero
- Type: STT_SECTION
- Section: .reloc_zero
- - Name: L1
- Section: .reloc_zero
- - Name: L2
- Section: .reloc_zero
- Value: 0x0000000000000004
- - Name: .reloc_max
- Type: STT_SECTION
- Section: .reloc_max
- - Name: L3
- Section: .reloc_max
- - Name: L4
- Section: .reloc_max
- Value: 0x0000000000000004
- - Name: .reloc_min
- Type: STT_SECTION
- Section: .reloc_min
- - Name: L5
- Section: .reloc_min
- - Name: L6
- Section: .reloc_min
- Value: 0x0000000000000004
- Global:
- - Name: _start
- Section: .reloc_zero
+ - Name: .text
+ Type: STT_SECTION
+ Section: .text
+ - Name: .data
+ Type: STT_SECTION
+ Section: .data
+ - Name: .bss
+ Type: STT_SECTION
+ Section: .bss
+ - Name: .reloc_zero
+ Type: STT_SECTION
+ Section: .reloc_zero
+ - Name: L1
+ Section: .reloc_zero
+ - Name: L2
+ Section: .reloc_zero
+ Value: 0x0000000000000004
+ - Name: .reloc_max
+ Type: STT_SECTION
+ Section: .reloc_max
+ - Name: L3
+ Section: .reloc_max
+ - Name: L4
+ Section: .reloc_max
+ Value: 0x0000000000000004
+ - Name: .reloc_min
+ Type: STT_SECTION
+ Section: .reloc_min
+ - Name: L5
+ Section: .reloc_min
+ - Name: L6
+ Section: .reloc_min
+ Value: 0x0000000000000004
+ - Name: _start
+ Section: .reloc_zero
+ Binding: STB_GLOBAL
...
Symbol: L1
Type: R_RISCV_PCREL_LO12_I
Symbols:
- Local:
- - Name: .text
- Type: STT_SECTION
- Section: .text
- - Name: .data
- Type: STT_SECTION
- Section: .data
- - Name: .bss
- Type: STT_SECTION
- Section: .bss
- - Name: .reloc_neg
- Type: STT_SECTION
- Section: .reloc_neg
- - Name: L1
- Section: .reloc_neg
- Global:
- - Name: _start
- Section: .text
+ - Name: .text
+ Type: STT_SECTION
+ Section: .text
+ - Name: .data
+ Type: STT_SECTION
+ Section: .data
+ - Name: .bss
+ Type: STT_SECTION
+ Section: .bss
+ - Name: .reloc_neg
+ Type: STT_SECTION
+ Section: .reloc_neg
+ - Name: L1
+ Section: .reloc_neg
+ - Name: _start
+ Section: .text
+ Binding: STB_GLOBAL
...
AddressAlign: 0
Symbols:
- Global:
- - Name: _start
- Section: .text
+ - Name: _start
+ Section: .text
+ Binding: STB_GLOBAL
Info: .text
Relocations:
Symbols:
- Local:
- - Type: STT_SECTION
- Section: .rela.text
- - Type: STT_SECTION
- Section: .shstrtab
- - Type: STT_SECTION
- Section: .symtab
- - Type: STT_SECTION
- Section: .strtab
+ - Type: STT_SECTION
+ Section: .rela.text
+ - Type: STT_SECTION
+ Section: .shstrtab
+ - Type: STT_SECTION
+ Section: .symtab
+ - Type: STT_SECTION
+ Section: .strtab
Symbol: foo
Type: R_X86_64_64
Symbols:
- Global:
- - Name: foo
+ - Name: foo
+ Binding: STB_GLOBAL
Symbol: bar
Type: R_X86_64_64
Symbols:
- Global:
- - Name: foo
- - Name: bar
-
+ - Name: foo
+ Binding: STB_GLOBAL
+ - Name: bar
+ Binding: STB_GLOBAL
Content: '0111001017000000'
Symbols:
- Local:
- - Name: .debug_abbrev
- Type: STT_SECTION
- Section: .debug_abbrev
- - Name: .debug_line
- Type: STT_SECTION
- Section: .debug_line
- Global:
- - Name: _start
- Section: .text
- - Name: bar
+ - Name: .debug_abbrev
+ Type: STT_SECTION
+ Section: .debug_abbrev
+ - Name: .debug_line
+ Type: STT_SECTION
+ Section: .debug_line
+ - Name: _start
+ Section: .text
+ Binding: STB_GLOBAL
+ - Name: bar
+ Binding: STB_GLOBAL