File tree Expand file tree Collapse file tree 1 file changed +3
-27
lines changed Expand file tree Collapse file tree 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
33
4- --- !ELF
4+ !ELF
55FileHeader:
66 Class: ELFCLASS64
77 Data: ELFDATA2LSB
@@ -33,27 +33,3 @@ Symbols:
3333# CHECK-NEXT: symbol_absolute {{.*}}| |*ABS*
3434# CHECK-NEXT: symbol_common {{.*}}| |*COM*
3535# 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