Skip to content

Commit

Permalink
Remove unused freebsd elf32/elf64 header references
Browse files Browse the repository at this point in the history
It doesn't make sense to require the freebsd-specific headers on
non-FreeBSD platforms. In fact, on my testing, the headers aren't even
used. And just break or do the wrong things when system libunwind is
used.
  • Loading branch information
omajid committed Sep 10, 2024
1 parent 2dd517e commit 5946405
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
5 changes: 0 additions & 5 deletions src/mono/mono/mini/dwarfwriter.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
#include <mono/metadata/debug-internals.h>
#include <mono/metadata/abi-details.h>

#ifndef HOST_WIN32
#include <external/libunwind/include/remote/freebsd-elf32.h>
#include <external/libunwind/include/remote/freebsd-elf64.h>
#endif

#include <mono/utils/freebsd-dwarf.h>

#define DW_AT_MIPS_linkage_name 0x2007
Expand Down
6 changes: 0 additions & 6 deletions src/mono/mono/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,6 @@ endif()

set(utils_sources "${utils_platform_sources};${utils_arch_sources};${utils_common_sources}")

set(utils_sources
${utils_sources}
${CLR_SRC_NATIVE_DIR}/external/libunwind/include/remote/freebsd-elf_common.h
${CLR_SRC_NATIVE_DIR}/external/libunwind/include/remote/freebsd-elf32.h
${CLR_SRC_NATIVE_DIR}/external/libunwind/include/remote/freebsd-elf64.h)

if(ENABLE_DTRACE)
find_program(DTRACE dtrace)
if(TARGET_OSX)
Expand Down

0 comments on commit 5946405

Please sign in to comment.