63 lines
1.9 KiB
Text
63 lines
1.9 KiB
Text
|
## This test checks the warning message displayed if input file
|
||
|
## contains .debug_pubnames section which is incompatible with
|
||
|
## requested accelerator table.
|
||
|
|
||
|
# RUN: yaml2obj %s -o %t.o
|
||
|
|
||
|
# RUN: llvm-dwarfutil --garbage-collection %t.o %t1 2>&1 | FileCheck %s -DFILE=%t.o --check-prefix=WARN1
|
||
|
|
||
|
# RUN: llvm-dwarfutil --build-accelerator=DWARF --garbage-collection %t.o %t1 2>&1 | FileCheck %s -DFILE=%t.o --check-prefix=WARN2
|
||
|
|
||
|
# RUN: llvm-dwarfutil --build-accelerator=DWARF --no-garbage-collection %t.o %t1 2>&1 | FileCheck %s -DFILE=%t.o --check-prefix=WARN2
|
||
|
|
||
|
# WARN1: [[FILE]]: warning: '.debug_pubnames' will be deleted as no accelerator tables are requested
|
||
|
|
||
|
# WARN2: [[FILE]]: warning: '.debug_pubnames' will be replaced with requested .debug_names table
|
||
|
|
||
|
--- !ELF
|
||
|
FileHeader:
|
||
|
Class: ELFCLASS64
|
||
|
Data: ELFDATA2LSB
|
||
|
Type: ET_REL
|
||
|
Machine: EM_X86_64
|
||
|
Sections:
|
||
|
- Name: .text
|
||
|
Type: SHT_PROGBITS
|
||
|
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
|
||
|
Address: 0x1000
|
||
|
AddressAlign: 0x0000000000000010
|
||
|
Content: "FFFFFFFF"
|
||
|
- Name: .debug_pubnames
|
||
|
Type: SHT_PROGBITS
|
||
|
Flags: [ ]
|
||
|
Content: "0000"
|
||
|
DWARF:
|
||
|
debug_abbrev:
|
||
|
- Table:
|
||
|
- Tag: DW_TAG_compile_unit
|
||
|
Children: DW_CHILDREN_yes
|
||
|
Attributes:
|
||
|
- Attribute: DW_AT_producer
|
||
|
Form: DW_FORM_string
|
||
|
- Attribute: DW_AT_language
|
||
|
Form: DW_FORM_data2
|
||
|
- Attribute: DW_AT_name
|
||
|
Form: DW_FORM_string
|
||
|
- Attribute: DW_AT_low_pc
|
||
|
Form: DW_FORM_addr
|
||
|
- Attribute: DW_AT_high_pc
|
||
|
Form: DW_FORM_data8
|
||
|
debug_info:
|
||
|
- Version: 5
|
||
|
UnitType: DW_UT_compile
|
||
|
Entries:
|
||
|
- AbbrCode: 1
|
||
|
Values:
|
||
|
- CStr: by_hand
|
||
|
- Value: 0x04
|
||
|
- CStr: CU1
|
||
|
- Value: 0x1000
|
||
|
- Value: 0x4
|
||
|
- AbbrCode: 0
|
||
|
...
|