[PATCH 0/2] [MIPS] Emit .note.GNU-stack for linux targets.
Dragan Mladjenovic
dmladjenovic@wavecomp.com
Mon Aug 5 10:43:00 GMT 2019
From: "Dragan Mladjenovic" <dmladjenovic@wavecomp.com>
Greetings,
These patches enable emitting .note.GNU-stack by default on mips linux targets.
First one enables it unconditionally for soft-float builds while the second one
enables it for hard-float build if gcc is configured against the future version
of glibc that should enable safe usage of PT_GNU_STACK [1].
[1] https://sourceware.org/ml/libc-alpha/2019-08/msg00065.html
Best regards,
Dragan
Dragan Mladjenovic (2):
Emit .note.GNU-stack for soft-float linux targets.
Emit .note.GNU-stack for hard-float linux targets.
gcc/config.in | 6 ++++++
gcc/config/mips/linux.h | 8 +++++++
gcc/config/mips/mips.c | 11 ++++++++++
gcc/config/mips/mips.h | 2 ++
gcc/configure | 47 +++++++++++++++++++++++++++++++++--------
gcc/configure.ac | 12 +++++++++++
libgcc/config/mips/crti.S | 3 +++
libgcc/config/mips/crtn.S | 3 +++
libgcc/config/mips/gnustack.h | 7 ++++++
libgcc/config/mips/mips16.S | 3 +++
libgcc/config/mips/vr4120-div.S | 3 +++
11 files changed, 96 insertions(+), 9 deletions(-)
create mode 100644 libgcc/config/mips/gnustack.h
--
1.9.1
More information about the Gcc-patches
mailing list