Skip to content

Commit 601ad2f

Browse files
nikiccuviper
authored andcommitted
[rust] Comment out build ID handling on FreeBSD
This does not build with FreeBSD 11 at least.
1 parent 3008834 commit 601ad2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ static int AddModuleSegments(const char *module_name, dl_phdr_info *info,
613613
cur_module.addAddressRange(cur_beg, cur_end, executable,
614614
writable);
615615
} else if (phdr->p_type == PT_NOTE) {
616-
# ifdef NT_GNU_BUILD_ID
616+
# if defined(NT_GNU_BUILD_ID) && !SANITIZER_FREEBSD
617617
uptr off = 0;
618618
while (off + sizeof(ElfW(Nhdr)) < phdr->p_memsz) {
619619
auto *nhdr = reinterpret_cast<const ElfW(Nhdr) *>(info->dlpi_addr +

0 commit comments

Comments
 (0)