Fangrui Song | b587ca9 | 2020-08-20 22:00:25 | [diff] [blame] | 1 | # RUN: yaml2obj %s -o %t.obj |
Alexandre Ganea | 45b8a74 | 2020-11-12 13:14:20 | [diff] [blame] | 2 | # RUN: env LLD_IN_TEST=1 not lld-link %t.obj 2>&1 | FileCheck %s |
Rui Ueyama | 7e95d9e | 2018-07-24 22:52:11 | [diff] [blame] | 3 | |
| 4 | # CHECK: foo should not refer to special section -10 |
| 5 | |
| 6 | --- !COFF |
| 7 | header: |
| 8 | Machine: IMAGE_FILE_MACHINE_I386 |
| 9 | Characteristics: [] |
| 10 | sections: |
| 11 | - Name: .text |
| 12 | Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ] |
| 13 | Alignment: 4 |
| 14 | SectionData: B82A000000C3 |
| 15 | symbols: |
| 16 | - Name: .text |
| 17 | Value: 0 |
| 18 | SectionNumber: 1 |
| 19 | SimpleType: IMAGE_SYM_TYPE_NULL |
| 20 | ComplexType: IMAGE_SYM_DTYPE_NULL |
| 21 | StorageClass: IMAGE_SYM_CLASS_STATIC |
| 22 | SectionDefinition: |
| 23 | Length: 6 |
| 24 | NumberOfRelocations: 0 |
| 25 | NumberOfLinenumbers: 0 |
| 26 | CheckSum: 0 |
| 27 | Number: 0 |
| 28 | - Name: foo |
| 29 | Value: 0 |
| 30 | SectionNumber: -10 |
| 31 | SimpleType: IMAGE_SYM_TYPE_NULL |
| 32 | ComplexType: IMAGE_SYM_DTYPE_NULL |
| 33 | StorageClass: IMAGE_SYM_CLASS_EXTERNAL |
| 34 | ... |