HomeFreeBSD

devel/llvm12: lld fix compressed input sections

Description

devel/llvm12: lld fix compressed input sections

Apply upstream lld fix for compressed input sections on BE targets

[LLD] Support compressed input sections on big-endian targets

This patch enables compressed input sections on big-endian targets by
checking the target endianness and selecting an appropriate `Chdr`
structure.

Fixes PR51369

Differential Revision: https://reviews.llvm.org/D107635

MFH: 2021Q3
Sponsored by: DARPA

(cherry picked from commit f4fb63c060f4afb6d61e558b38a4092fadddacb1)

Details

Provenance
brooksAuthored on Aug 11 2021, 8:01 PM
Parents
R11:6702793f75bd: devel/llvm12: Add patches to enable kernel sanitizers on FreeBSD
Branches
Unknown
Tags
Unknown