This is an archive of the discontinued LLVM Phabricator instance.

[ELF/COFF] Rename Strings.h to support case-insensative file systems
AbandonedPublic

Authored by DxCx on Feb 24 2018, 1:44 AM.

Details

Reviewers
sbc100
Summary

Hey,

I'm trying to compile lld which it's sources are on shared storage network,
unfortunately this shared resource is case-insensitive,
Then in code, there is #include <strings.h> which actually resolves into local Strings.h file.

So, this patch, will rename Strings.h to ELFStrings.h/COFFStrings.h so the tree will be compatible with case-insensitive file system. after that resolving works just fine and lld is compiled and usable.

Diff Detail

Repository
rLLD LLVM Linker

Event Timeline

DxCx created this revision.Feb 24 2018, 1:44 AM
DxCx edited the summary of this revision. (Show Details)Feb 24 2018, 1:47 AM
DxCx added a reviewer: sbc100.Feb 24 2018, 1:50 AM
ruiu added a subscriber: ruiu.Feb 26 2018, 2:28 PM

I think we should remove these "Strings" file and merge them with lld/Common/Strings.cpp. I'll make a change and send it to you guys.

ruiu added a comment.Feb 26 2018, 2:50 PM

Can you try https://reviews.llvm.org/D43788 to see if that change fixes your issue?

ELF/Relocations.cpp