summaryrefslogtreecommitdiff
path: root/www/iridium/files/patch-base_debug_elf__reader__linux.cc
blob: b0e23be85bc64e042b408d4329ed32460f8bdbf5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- base/debug/elf_reader_linux.cc.orig	2019-03-11 22:00:51 UTC
+++ base/debug/elf_reader_linux.cc
@@ -41,8 +41,10 @@ Optional<std::string> ElfSegmentBuildIDNoteAsString(co
   const void* section_end = segment.data() + segment.size_bytes();
   const Nhdr* note_header = reinterpret_cast<const Nhdr*>(segment.data());
   while (note_header < section_end) {
+#if !defined(OS_BSD)
     if (note_header->n_type == NT_GNU_BUILD_ID)
       break;
+#endif
     note_header = reinterpret_cast<const Nhdr*>(
         reinterpret_cast<const char*>(note_header) + sizeof(Nhdr) +
         bits::Align(note_header->n_namesz, 4) +