SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
19
www/chromium/patches/patch-base_debug_elf_reader_cc
Normal file
19
www/chromium/patches/patch-base_debug_elf_reader_cc
Normal file
|
@ -0,0 +1,19 @@
|
|||
Index: base/debug/elf_reader.cc
|
||||
--- base/debug/elf_reader.cc.orig
|
||||
+++ base/debug/elf_reader.cc
|
||||
@@ -78,6 +78,7 @@ size_t ReadElfBuildId(const void* elf_mapped_base,
|
||||
bool found = false;
|
||||
while (current_section < section_end) {
|
||||
current_note = reinterpret_cast<const Nhdr*>(current_section);
|
||||
+#if !defined(OS_BSD)
|
||||
if (current_note->n_type == NT_GNU_BUILD_ID) {
|
||||
StringPiece note_name(current_section + sizeof(Nhdr),
|
||||
current_note->n_namesz);
|
||||
@@ -87,6 +88,7 @@ size_t ReadElfBuildId(const void* elf_mapped_base,
|
||||
break;
|
||||
}
|
||||
}
|
||||
+#endif
|
||||
|
||||
size_t section_size = bits::AlignUp(current_note->n_namesz, 4u) +
|
||||
bits::AlignUp(current_note->n_descsz, 4u) +
|
Loading…
Add table
Add a link
Reference in a new issue