mirror of
https://git.freebsd.org/ports.git
synced 2025-06-19 03:30:32 -04:00
- Make existing patches apply cleanly Changelog: https://chromium.googlesource.com/chromium/src/+log/72.0.3626.121..73.0.3683.86?pretty=fuller&n=10000 Submitted by: Matthias Wolf MFH: 2019Q2
13 lines
617 B
C++
13 lines
617 B
C++
--- 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) +
|