This is an archive of the discontinued LLVM Phabricator instance.

[MCParser] Reject processor-specific section flags not known by the current target
ClosedPublic

Authored by MaskRay on Apr 14 2023, 3:14 PM.

Details

Summary

Catch accidentally used flags and match MCSectionELF.cpp.

Diff Detail

Event Timeline

MaskRay created this revision.Apr 14 2023, 3:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 14 2023, 3:14 PM
MaskRay requested review of this revision.Apr 14 2023, 3:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 14 2023, 3:14 PM
aeubanks accepted this revision.Apr 14 2023, 4:00 PM
This revision is now accepted and ready to land.Apr 14 2023, 4:00 PM
MaskRay edited the summary of this revision. (Show Details)Apr 14 2023, 4:05 PM
This revision was landed with ongoing or failed builds.Apr 14 2023, 4:06 PM
This revision was automatically updated to reflect the committed changes.

Hi, this is causing bolt/test/AArch64/r_aarch64_prelxx.s to fail:

/usr/local/google/home/zequanwu/workspace/llvm-project/bolt/test/AArch64/r_aarch64_prelxx.s:46:22: error: unknown flag
.section .dummy, "da"
                     ^

Hi, this is causing bolt/test/AArch64/r_aarch64_prelxx.s to fail:

/usr/local/google/home/zequanwu/workspace/llvm-project/bolt/test/AArch64/r_aarch64_prelxx.s:46:22: error: unknown flag
.section .dummy, "da"
                     ^

NVM, https://reviews.llvm.org/D148511 fixes it.