[all-commits] [llvm/llvm-project] f7c4d7: [compiler-rt] Define ElfW() macro if it's not defined
Sergej Jaskiewicz via All-commits
all-commits at lists.llvm.org
Tue Mar 10 08:54:39 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: f7c4d796ba67dba27361d07a77eefde05d2e0c9c
https://github.com/llvm/llvm-project/commit/f7c4d796ba67dba27361d07a77eefde05d2e0c9c
Author: Sergej Jaskiewicz <jaskiewiczs at icloud.com>
Date: 2020-03-10 (Tue, 10 Mar 2020)
Changed paths:
M compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp
Log Message:
-----------
[compiler-rt] Define ElfW() macro if it's not defined
Summary:
The `ElfW()` macro is not provided by `<link.h>` on some
systems (e.g., FreeBSD). On these systems the data structures are
just called `Elf_XXX`. Define `ElfW()` locally.
(This fix is taken from [libunwind](https://github.com/llvm/llvm-project/blob/9b05596eff21388ae6f17cdea8df0538dc630441/libunwind/src/AddressSpace.hpp#L144-L157).)
Reviewers: compnerd
Differential revision: https://reviews.llvm.org/D75907
More information about the All-commits
mailing list