Page MenuHomePhabricator

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

Authored by atanasyan on Aug 6 2021, 3:57 AM.

Details

Summary

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

Fixes PR51369

Diff Detail

Event Timeline

atanasyan created this revision.Aug 6 2021, 3:57 AM
atanasyan requested review of this revision.Aug 6 2021, 3:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 6 2021, 3:57 AM
emaste added a comment.Aug 6 2021, 7:07 AM

With this patch applied BE mips64 FreeBSD builds successfully for me

emaste added a subscriber: dim.Aug 6 2021, 7:07 AM
dim added a comment.Aug 6 2021, 7:26 AM

This LGTM, but I'm not an approver. I'll probably import this into FreeBSD if it's committed, though.

MaskRay accepted this revision.Aug 6 2021, 9:38 AM

Looks great!

This revision is now accepted and ready to land.Aug 6 2021, 9:38 AM
emaste accepted this revision.Aug 6 2021, 11:55 AM
This revision was landed with ongoing or failed builds.Aug 7 2021, 3:20 AM
This revision was automatically updated to reflect the committed changes.

Thanks for review.