summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-base_debug_elf__reader.cc
blob: a3973973620250e7267241b761a33a58e38bf773 (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-06-04 18:55:15 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) +