Skip to content

Commit

Permalink
[rust] Comment out build ID handling on FreeBSD
Browse files Browse the repository at this point in the history
This does not build with FreeBSD 11 at least.
  • Loading branch information
nikic committed Feb 13, 2022
1 parent 3f5ab0c commit 514d055
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ static int AddModuleSegments(const char *module_name, dl_phdr_info *info,
cur_module.addAddressRange(cur_beg, cur_end, executable,
writable);
} else if (phdr->p_type == PT_NOTE) {
# ifdef NT_GNU_BUILD_ID
# if defined(NT_GNU_BUILD_ID) && !SANITIZER_FREEBSD
uptr off = 0;
while (off + sizeof(ElfW(Nhdr)) < phdr->p_memsz) {
auto *nhdr = reinterpret_cast<const ElfW(Nhdr) *>(info->dlpi_addr +
Expand Down

0 comments on commit 514d055

Please sign in to comment.