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
..
2017-07-06 21:33:23 +00:00
2015-11-06 13:35:35 +00:00
2018-03-12 23:36:25 +00:00
2015-11-03 18:50:51 +00:00
2018-06-26 17:44:23 +00:00
2015-05-22 21:37:13 +00:00
2018-06-26 17:44:23 +00:00
2016-04-08 18:15:37 +00:00
2016-04-08 18:15:37 +00:00
2016-04-08 18:15:37 +00:00
2016-04-08 18:15:37 +00:00
2015-05-22 21:37:13 +00:00
2015-05-22 21:37:13 +00:00
2015-06-22 23:36:03 +00:00
2015-05-22 21:37:13 +00:00
2015-06-25 20:10:45 +00:00