HomePhabricator

[compiler-rt] Define ElfW() macro if it's not defined

Authored by broadwaylamb on Mar 10 2020, 8:53 AM.

Description

[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.)

Reviewers: compnerd

Differential revision: https://reviews.llvm.org/D75907