aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2022-08-05 16:52:03 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2022-09-22 16:26:50 +0000
commit463da422f019a417b791d7db9adae1ad7d089802 (patch)
tree59ee6d92ddd19c4607d2da303a41801665650f5a /clang/lib/Lex/ModuleMap.cpp
parent4132bce9e56b00cdce8928e4ea67b136c93f46a2 (diff)
downloadllvm-463da422f019a417b791d7db9adae1ad7d089802.zip
llvm-463da422f019a417b791d7db9adae1ad7d089802.tar.gz
llvm-463da422f019a417b791d7db9adae1ad7d089802.tar.bz2
MC: make section classification a bit more thorough
This does *NOT* change the emitted section flags in any way. This only impacts the internal classification of sections. Extend the section classification in LLVM for ELF targets. This has one important change: we now classify sections as text by default rather than readonly. This matches the behaviour for GAS better. Ensure that any section that has a writable attribute set is not treated as readonly. We also special case any section named `.debug_` which is reserved for DWARF as metadata. In the case none of the attributes are set (or because no attributes were provided), consult the section name for classification. We match the well known names and classify the section accordingly. Any remaining section is now classified as text. This change allows us to classify sections in the MC layer more precisely which is needed for subsequent changes for handling target specific behaviour. Re-apply the change that was reverted with additional changes to classify section prefixes appropriately and differentiate the TLS sections, addressing the FIXME and post-commit review comments by @MaskRay. Differential Revision: https://reviews.llvm.org/D133456 Reviewed By: @MaskRay
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions