gcc/libgcc/config/mips/gnustack.h
Dragan Mladjenovic 54b3d52c3c Emit .note.GNU-stack for hard-float linux targets.
libgcc/ChangeLog:

2020-01-23  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>

	* config/mips/gnustack.h: Check for TARGET_LIBC_GNUSTACK also.

gcc/ChangeLog:

2020-01-23  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>

	* config.in: Regenerated.
	* config/mips/linux.h (NEED_INDICATE_EXEC_STACK): Define to 1
	for TARGET_LIBC_GNUSTACK.
	* configure: Regenerated.
	* configure.ac: Define TARGET_LIBC_GNUSTACK if glibc version is
	found to be 2.31 or greater.
2020-01-23 17:00:03 +01:00

8 lines
193 B
C

#include "config.h"
#if defined(__ELF__) && defined(__linux__)
#if defined (TARGET_LIBC_GNUSTACK) || defined (__mips_soft_float)
.section .note.GNU-stack,"",%progbits
.previous
#endif
#endif