https://github.com/rust-lang/rust/issues/78184

--- library/backtrace/src/symbolize/gimli.rs.orig	2021-02-10 17:36:59 UTC
+++ library/backtrace/src/symbolize/gimli.rs
@@ -361,6 +361,7 @@ cfg_if::cfg_if! {
     } else if #[cfg(any(
         target_os = "linux",
         target_os = "fuchsia",
+        target_os = "freebsd",
     ))] {
         // Other Unix (e.g. Linux) platforms use ELF as an object file format
         // and typically implement an API called `dl_iterate_phdr` to load
