mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
735f9edde1
.file records are supposed to have a section identifier of 65534 (IMAGE_SCN_DEBUG) rather than 0. This is spelt out clearly within the PE/COFF specification. Fix this minor oversight with the implementation for support for .file records. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207851 91177308-0d34-0410-b5e6-96231b3b80d8
48 lines
1.3 KiB
ArmAsm
48 lines
1.3 KiB
ArmAsm
// RUN: llvm-mc -triple i686-windows -filetype obj %s -o - | llvm-objdump -t - \
|
|
// RUN: | FileCheck %s
|
|
|
|
// RUN: llvm-mc -triple i686-windows -filetype obj %s -o - \
|
|
// RUN: | llvm-readobj -symbols | FileCheck %s -check-prefix CHECK-SCN
|
|
|
|
.file "null-padded.asm"
|
|
// CHECK: (nx 1) {{0x[0-9]+}} .file
|
|
// CHECK-NEXT: AUX null-padded.asm{{$}}
|
|
|
|
.file "eighteen-chars.asm"
|
|
|
|
// CHECK: (nx 1) {{0x[0-9]+}} .file
|
|
// CHECK-NEXT: AUX eighteen-chars.asm{{$}}
|
|
|
|
.file "multiple-auxiliary-entries.asm"
|
|
|
|
// CHECK: (nx 2) {{0x[0-9]+}} .file
|
|
// CHECK-NEXT: AUX multiple-auxiliary-entries.asm{{$}}
|
|
|
|
// CHECK-SCN: Symbols [
|
|
// CHECK-SCN: Symbol {
|
|
// CHECK-SCN: Name: .file
|
|
// CHECK-SCN: Section: (65534)
|
|
// CHECK-SCN: StorageClass: File
|
|
// CHECK-SCN: AuxFileRecord {
|
|
// CHECK-SCN: FileName: null-padded.asm
|
|
// CHECK-SCN: }
|
|
// CHECK-SCN: }
|
|
// CHECK-SCN: Symbol {
|
|
// CHECK-SCN: Name: .file
|
|
// CHECK-SCN: Section: (65534)
|
|
// CHECK-SCN: StorageClass: File
|
|
// CHECK-SCN: AuxFileRecord {
|
|
// CHECK-SCN: FileName: eighteen-chars.asm
|
|
// CHECK-SCN: }
|
|
// CHECK-SCN: }
|
|
// CHECK-SCN: Symbol {
|
|
// CHECK-SCN: Name: .file
|
|
// CHECK-SCN: Section: (65534)
|
|
// CHECK-SCN: StorageClass: File
|
|
// CHECK-SCN: AuxFileRecord {
|
|
// CHECK-SCN: FileName: multiple-auxiliary-entries.asm
|
|
// CHECK-SCN: }
|
|
// CHECK-SCN: }
|
|
// CHECK-SCN: ]
|
|
|