mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +00:00
tools: fix invalid printing, buffer overrun in llvm-readobj
All auxiliary records are consumed when accessing a File record. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206354 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
18
test/tools/llvm-readobj/coff-file-sections-reading.test
Normal file
18
test/tools/llvm-readobj/coff-file-sections-reading.test
Normal file
@ -0,0 +1,18 @@
|
||||
RUN: yaml2obj %p/Inputs/file-multiple-aux-records.yaml | llvm-readobj -t - | FileCheck %s
|
||||
|
||||
CHECK: Symbols [
|
||||
CHECK: Symbol {
|
||||
CHECK: Name: .file
|
||||
CHECK: Value: 0
|
||||
CHECK: Section: (65534)
|
||||
CHECK: BaseType: Null (0x0)
|
||||
CHECK: ComplexType: Null (0x0)
|
||||
CHECK: StorageClass: File (0x67)
|
||||
CHECK: AuxSymbolCount: 3
|
||||
CHECK: AuxFileRecord {
|
||||
CHECK: FileName: first-section-has-eighteen-characters.asm
|
||||
CHECK: }
|
||||
CHECK-NOT: AuxFileRecord {
|
||||
CHECK: }
|
||||
CHECK: ]
|
||||
|
Reference in New Issue
Block a user