This is an archive of the discontinued LLVM Phabricator instance.

Allow ELF section flags to be specified numerically
ClosedPublic

Authored by prakhar on Dec 6 2016, 3:19 AM.

Details

Summary

GAS already allows flags for sections to be specified directly as a
numeric value. This functionality is particularly useful for setting
processor or application-specific values that may not be directly
supported or understood by LLVM. This patch allows LLVM to use numeric
section flag values verbatim if specified by the assembly file.

Diff Detail

Repository
rL LLVM

Event Timeline

prakhar updated this revision to Diff 80400.Dec 6 2016, 3:19 AM
prakhar retitled this revision from to Allow ELF section flags to be specified numerically.
prakhar updated this object.
prakhar added a subscriber: llvm-commits.
rengolin accepted this revision.Dec 8 2016, 5:00 AM
rengolin edited edge metadata.

LGTM. This is in accordance with the document:

https://sourceware.org/binutils/docs-2.27/as/Section.html#Section

This revision is now accepted and ready to land.Dec 8 2016, 5:00 AM
This revision was automatically updated to reflect the committed changes.