[PATCH] D72194: [MC][ELF] Ensure that mergeable globals with an explicit section are assigned to SHF_MERGE sections with compatible entsizes
ben via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 23 18:40:53 PST 2020
bd1976llvm updated this revision to Diff 240081.
bd1976llvm marked 5 inline comments as done.
bd1976llvm added a comment.
I have updated the patch. It now handles both "default" sections and "implicit" sections ("implicit" sections are those that are created by MC normally as it encounters symbols). I have improved the test coverage, organised the tests and improved the comments for the test cases. Sorry it took a while to update the patch.. this was a more difficult change than I had anticipated. I have tried a few different approaches, I am not entirely happy with the current implementation but it is difficult to simply further.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72194/new/
https://reviews.llvm.org/D72194
Files:
clang/test/CodeGen/cfstring-elf-sections-x86_64.c
llvm/include/llvm/MC/MCContext.h
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
llvm/lib/MC/MCContext.cpp
llvm/test/CodeGen/X86/explict-section-mergeable.ll
llvm/unittests/ExecutionEngine/Orc/LegacyRTDyldObjectLinkingLayerTest.cpp
llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72194.240081.patch
Type: text/x-patch
Size: 33910 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200124/dc6ab3b3/attachment.bin>
More information about the llvm-commits
mailing list