1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/tools/llvm-readobj
Prakhar Bahuguna dc9a43dec1 [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
..
ARMAttributeParser.cpp
ARMAttributeParser.h
ARMEHABIPrinter.h [ELF] Convert ELF.h to Expected<T>. 2016-11-16 05:10:28 +00:00
ARMWinEHPrinter.cpp
ARMWinEHPrinter.h
CMakeLists.txt
CodeView.h
COFFDumper.cpp [CodeView] Hook up CodeViewRecordIO to type serialization path. 2016-11-08 22:24:53 +00:00
COFFImportDumper.cpp
ELFDumper.cpp [ARM] Implement execute-only support in CodeGen 2016-12-15 07:59:08 +00:00
Error.cpp
Error.h
llvm-readobj.cpp AMDGPU: Emit runtime metadata version 2 as YAML 2016-12-14 17:16:52 +00:00
llvm-readobj.h
LLVMBuild.txt
MachODumper.cpp
ObjDumper.cpp
ObjDumper.h AMDGPU: Emit runtime metadata version 2 as YAML 2016-12-14 17:16:52 +00:00
StackMapPrinter.h
Win64EHDumper.cpp
Win64EHDumper.h