summaryrefslogtreecommitdiff
path: root/devel/electron6/files/patch-base_debug_elf__reader.cc
blob: f9d6f2fa0a2e4bffda0982bc23890a93038d6c17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- base/debug/elf_reader.cc.orig	2019-09-10 10:42:27 UTC
+++ base/debug/elf_reader.cc
@@ -83,6 +83,7 @@ size_t ReadElfBuildId(const void* elf_mapped_base,
         reinterpret_cast<const Nhdr*>(elf_base + header.p_vaddr);
     bool found = false;
     while (current_note < section_end) {
+#if !defined(OS_BSD)
       if (current_note->n_type == NT_GNU_BUILD_ID) {
         const char* note_name =
             reinterpret_cast<const char*>(current_note) + sizeof(Nhdr);
@@ -92,6 +93,7 @@ size_t ReadElfBuildId(const void* elf_mapped_base,
           break;
         }
       }
+#endif
 
       current_note = reinterpret_cast<const Nhdr*>(
           reinterpret_cast<const char*>(current_note) + sizeof(Nhdr) +