This patch handles the SectionKind of ReadOnlyWithRel.
Details
- Reviewers
shchenz lkail qiucf tingwang DiggerLin hubert.reinterpretcast - Group Reviewers
Restricted Project - Commits
- rG8514d207ba91: [AIX] Handle ReadOnlyWithRel kind on AIX.
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/MC/MCSectionXCOFF.cpp | ||
---|---|---|
128 | Is this correct for -mxcoff-roptr? |
The storage-mapping class should be XCOFF::XMC_RO when -mxcoff-roptr is specified. Add check lines for it.
@Esme, can you add more info about the motivation for doing this (e.g., what fails?) to either the patch description (preferred) or as a comment (replying to this one)?
Information on whether this should be included for LLVM 17 (and why) would be useful.
The issue was found by Zheng @shchenz during sanitizer enablement on AIX.
$ clang -fsanitize=address -m32 -fsanitize-coverage=control-flow llvm-project/compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_control_flow.cpp
fatal error: error in backend: Printing for this SectionKind is unimplemented.
clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
It sounds like this is not a regression and can be left out of the LLVM 17 release then. Does that sound right?
I think so. This failure currently only occurs with -fsanitize-coverage and support for this option on AIX is not yet complete.
It is clear from the added test that the failure can occur in other contexts, but we only discovered the issue in new coverage (associated with sanitizer enablement).
Move the code to here.