llvm-project/llvm/lib/ObjectYAML
Prakhar Bahuguna 52a7dd7d78 [ARM] Implement execute-only support in CodeGen
This implements execute-only support for ARM code generation, which
prevents the compiler from generating data accesses to code sections.
The following changes are involved:

* Add the CodeGen option "-arm-execute-only" to the ARM code generator.
* Add the clang flag "-mexecute-only" as well as the GCC-compatible
  alias "-mpure-code" to enable this option.
* When enabled, literal pools are replaced with MOVW/MOVT instructions,
  with VMOV used in addition for floating-point literals. As the MOVT
  instruction is required, execute-only support is only available in
  Thumb mode for targets supporting ARMv8-M baseline or Thumb2.
* Jump tables are placed in data sections when in execute-only mode.
* The execute-only text section is assigned section ID 0, and is
  marked as unreadable with the SHF_ARM_PURECODE flag with symbol 'y'.
  This also overrides selection of ELF sections for globals.

llvm-svn: 289784
2016-12-15 07:59:08 +00:00
..
CMakeLists.txt [ObjectYAML] Pull DWARF support into DWARFYAML namespace 2016-12-07 21:26:32 +00:00
COFFYAML.cpp [yaml2obj] Remove --format option in favor of YAML tags 2016-06-27 19:53:53 +00:00
DWARFYAML.cpp [ObjectYAML] Support for DWARF debug_aranges 2016-12-09 00:26:44 +00:00
ELFYAML.cpp [ARM] Implement execute-only support in CodeGen 2016-12-15 07:59:08 +00:00
LLVMBuild.txt
MachOYAML.cpp [ObjectYAML] Pull DWARF support into DWARFYAML namespace 2016-12-07 21:26:32 +00:00
ObjectYAML.cpp Fix Clang-tidy readability-redundant-string-cstr warnings 2016-11-02 16:43:50 +00:00
YAML.cpp