File tree 1 file changed +3
-27
lines changed
1 file changed +3
-27
lines changed Original file line number Diff line number Diff line change 1
- # RUN: yaml2obj --docnum=1 %s > %t1 .o
2
- # RUN: llvm-nm %t1 .o --format=sysv | FileCheck %s
1
+ # RUN: yaml2obj %s > %t .o
2
+ # RUN: llvm-nm %t .o --format=sysv | FileCheck %s
3
3
4
- --- !ELF
4
+ !ELF
5
5
FileHeader:
6
6
Class: ELFCLASS64
7
7
Data: ELFDATA2LSB
@@ -33,27 +33,3 @@ Symbols:
33
33
# CHECK-NEXT: symbol_absolute {{.*}}| |*ABS*
34
34
# CHECK-NEXT: symbol_common {{.*}}| |*COM*
35
35
# CHECK-NEXT: symbol_undefined {{.*}}| |*UND*
36
-
37
- ## Here we have a symbol that belongs to a section with a broken name
38
- ## (sh_name offset goes past the end of the sections name string table).
39
- ## We test that we can still print a reasonable output and don't crash/assert.
40
-
41
- # RUN: yaml2obj --docnum=2 %s > %t2.o
42
- # RUN: llvm-nm %t2.o --format=sysv | FileCheck %s --check-prefix=ERR
43
-
44
- # ERR: foo |0000000000000000| ? | NOTYPE|0000000000000000| |
45
-
46
- --- !ELF
47
- FileHeader:
48
- Class: ELFCLASS64
49
- Data: ELFDATA2LSB
50
- Type: ET_REL
51
- Machine: EM_X86_64
52
- Sections:
53
- - Name: .broken
54
- Type: SHT_PROGBITS
55
- Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
56
- ShName: 0xffff
57
- Symbols:
58
- - Name: foo
59
- Section: .broken
You can’t perform that action at this time.
0 commit comments