x86/cet: Properly output labels in property note section
authorH.J. Lu <hongjiu.lu@intel.com>
Thu, 19 Apr 2018 15:24:53 +0000 (15:24 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Thu, 19 Apr 2018 15:24:53 +0000 (08:24 -0700)
commit2130a2afe7e45001936bb55b8ba1340c54953bbd
treea61f01c14df45fb3a0760abacb653112c645df89
parent5f9ca0b8bfdce679dea03b6ac402c28d5ecfd5c2
x86/cet: Properly output labels in property note section

Replace ASM_OUTPUT_LABEL with fprintf so that internal labels in property
note section are unchanged by -fleading-underscore.

gcc/

PR target/85404
* config/i386/cet.c (file_end_indicate_exec_stack_and_cet):
Replace ASM_OUTPUT_LABEL with fprintf.

gcc/testsuite/

PR target/85404
* gcc.target/i386/pr85404.c: New test.

From-SVN: r259498
gcc/ChangeLog
gcc/config/i386/cet.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr85404.c [new file with mode: 0644]