File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -300,6 +300,7 @@ Optional<ArrayRef<uint8_t>> getBuildID(const ELFFile<ELFT> *Obj) {
300
300
for (auto N : Obj->notes (P, Err))
301
301
if (N.getType () == ELF::NT_GNU_BUILD_ID && N.getName () == ELF::ELF_NOTE_GNU)
302
302
return N.getDesc ();
303
+ consumeError (std::move (Err));
303
304
}
304
305
return {};
305
306
}
Original file line number Diff line number Diff line change
1
+ # RUN: yaml2obj %s -o %t
2
+
3
+ # RUN: llvm-symbolizer --debug-file-directory=%p/Inputs --obj=%t 0x20112f | FileCheck %s
4
+
5
+ # CHECK: ??
6
+ # CHECK-NEXT: ??:0:0
7
+
8
+ --- !ELF
9
+ FileHeader:
10
+ Class: ELFCLASS64
11
+ Data: ELFDATA2LSB
12
+ Type: ET_EXEC
13
+ Machine: EM_X86_64
14
+ Sections:
15
+ - Name: .note.invalid
16
+ Type: SHT_NOTE
17
+ Flags: [ SHF_ALLOC ]
18
+ Content: 0123456789
19
+ ProgramHeaders:
20
+ - Type: PT_NOTE
21
+ Flags: [ PF_R ]
22
+ Sections:
23
+ - Section: .note.invalid
You can’t perform that action at this time.
0 commit comments