This is an archive of the discontinued LLVM Phabricator instance.

[DWARFLinkerParallel][PowerPC] Cure tests failing on powerpc machine.
ClosedPublic

Authored by avl on Sep 1 2023, 3:49 AM.

Details

Summary

location-expression.test and tls-variable.test failed because wrong
endianness was used on powerpc machine. To fix the issue this patch
uses endianness from debug map as endianness for the whole target file.
Previosly, architecture endianness won over what is specified
in debug map.

Diff Detail

Event Timeline

avl created this revision.Sep 1 2023, 3:49 AM
avl requested review of this revision.Sep 1 2023, 3:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 1 2023, 3:49 AM
aprantl accepted this revision.Sep 1 2023, 5:06 PM
aprantl added inline comments.
llvm/lib/DWARFLinkerParallel/DWARFLinkerImpl.cpp
98–101

If (!...)

llvm/lib/DWARFLinkerParallel/OutputSections.h
294

same type on rhs

This revision is now accepted and ready to land.Sep 1 2023, 5:06 PM
avl added a comment.Sep 2 2023, 4:07 AM

Thank you for the review!