This is an archive of the discontinued LLVM Phabricator instance.

[objcopy][NFC] Fixing linking issue for libLLVMObjCopy
AbandonedPublic

Authored by kito-cheng on Feb 21 2022, 5:56 AM.

Details

Summary

This issue only appear on -DBUILD_SHARED_LIBS=On
llvm::COFF::encodeSectionName is hold in libLLVMBinaryFormat.

llvm-project/llvm/lib/ObjCopy/COFF/Writer.cpp:138: error: undefined reference to 'llvm::COFF::encodeSectionName(char*, unsigned long)'

Diff Detail

Event Timeline

kito-cheng created this revision.Feb 21 2022, 5:56 AM
kito-cheng requested review of this revision.Feb 21 2022, 5:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 21 2022, 5:56 AM

I think this has already been fixed. See https://reviews.llvm.org/D118692#3335374.

kito-cheng abandoned this revision.Feb 21 2022, 6:21 AM

Cool, thanks!