llvm-mirror/test/MC
Eric Christopher c2b29240e0 The initial .text section generated in object files was missing the
SHF_ARM_PURECODE flag when being built with the -mexecute-only flag.
All code sections of an ELF must have the flag set for the final .text
section to be execute-only, otherwise the flag gets removed.

A HasData flag is added to MCSection to aid in the determination that
the section is empty. A virtual setTargetSectionFlags is added to
MCELFObjectTargetWriter to allow subclasses to set target specific
section flags to be added to sections which we then use in the ARM
backend to set SHF_ARM_PURECODE.

Patch by Ivan Lozano!

Reviewed By: echristo

Differential Revision: https://reviews.llvm.org/D48792

llvm-svn: 341593
2018-09-06 22:09:31 +00:00
..
AArch64 [AArch64] Add Tiny Code Model for AArch64 2018-08-22 11:31:39 +00:00
AMDGPU [AMDGPU] Add support for a16 modifiear for gfx9 2018-08-28 15:07:30 +00:00
ARM The initial .text section generated in object files was missing the 2018-09-06 22:09:31 +00:00
AsmParser [debuginfo] generate debug info with asm+.file 2018-08-28 16:23:39 +00:00
AVR [AVR] Redefine the 'SBR' instruction as an alias 2018-09-01 12:22:54 +00:00
BPF
COFF [codeview] Emit labels for .cv_loc immediately 2018-08-28 22:29:12 +00:00
Disassembler [ARC] Prevent InstPrinter from crashing on unknown condition codes. 2018-09-06 19:58:26 +00:00
ELF The initial .text section generated in object files was missing the 2018-09-06 22:09:31 +00:00
Hexagon Check for tied operands 2018-08-13 14:01:25 +00:00
Lanai
MachO
Mips [mips] Add missing instructions 2018-08-29 11:35:03 +00:00
PowerPC [PowerPC][MC] Support expressions in getMemRIX16Encoding. 2018-08-27 17:37:43 +00:00
RISCV [RISCV][NFC] Rework test/MC/RISCV/rv{32,64}* to allow testing of symbol operands 2018-09-06 13:41:04 +00:00
Sparc [Sparc] allow tls_add/tls_call syntax in assembler parser 2018-09-03 10:38:12 +00:00
SystemZ
WebAssembly [WebAssembly] Added default stack-only instruction mode for MC. 2018-08-27 15:45:51 +00:00
X86 [X86][Assembler] Allow %eip as a register in 32-bit mode for .cfi directives. 2018-09-06 02:03:14 +00:00