Message ID | 1579890355-31747-1-git-send-email-dmladjenovic@wavecomp.com |
---|---|
State | New |
Headers | show |
Series | [wwwdocs] Document GNU-stack support added to GCC 10 for MIPS | expand |
On Fri, 24 Jan 2020, Dragan Mladjenovic wrote: > From: "Dragan Mladjenovic" <dmladjenovic@wavecomp.com> > > diff --git a/htdocs/gcc-10/changes.html b/htdocs/gcc-10/changes.html > index ef27c9b..7736990 100644 > --- a/htdocs/gcc-10/changes.html > +++ b/htdocs/gcc-10/changes.html > @@ -623,7 +623,14 @@ a work-in-progress.</p> > </li> > </ul> > > -<!-- <h3 id="mips">MIPS</h3> --> > +<h3 id="mips">MIPS</h3> > +<ul> > + <li>The <code>mips*-*-linux*</code> targets now mark object files with appropriate GNU-stack note, > + facilitating use of non-executable stack hardening on GNU/Linux. > + The soft-float targets have this feature enabled by default, while > + for hard-float targets it requires use of glibc 2.31 or later. > + </li> > +</ul> Thanksfor preparing this! I did not see any response, but now noticed the designated MIPS maintainer Matthew Fortune (per gcc/MAINTAINERS) was not on copy. The first line is a bit long; can you please wrap? The note on hard-float targets does not seem completely clear to me: I understand it requires glibc 2.31, but per the language it still may not enabled by default even if in that case? What is the situation on the default in the hard-float case? If believe you do not have commit access, but if you share an updated patch I can apply for you. Geral
On 22.02.2020. 13:25, Gerald Pfeifer wrote: > On Fri, 24 Jan 2020, Dragan Mladjenovic wrote: >> From: "Dragan Mladjenovic" <dmladjenovic@wavecomp.com> >> >> diff --git a/htdocs/gcc-10/changes.html b/htdocs/gcc-10/changes.html >> index ef27c9b..7736990 100644 >> --- a/htdocs/gcc-10/changes.html >> +++ b/htdocs/gcc-10/changes.html >> @@ -623,7 +623,14 @@ a work-in-progress.</p> >> </li> >> </ul> >> >> -<!-- <h3 id="mips">MIPS</h3> --> >> +<h3 id="mips">MIPS</h3> >> +<ul> >> + <li>The <code>mips*-*-linux*</code> targets now mark object files with appropriate GNU-stack note, >> + facilitating use of non-executable stack hardening on GNU/Linux. >> + The soft-float targets have this feature enabled by default, while >> + for hard-float targets it requires use of glibc 2.31 or later. >> + </li> >> +</ul> > > Thanksfor preparing this! I did not see any response, but now > noticed the designated MIPS maintainer Matthew Fortune (per > gcc/MAINTAINERS) was not on copy. Thanks for the replay. Sorry for the late response. > > The first line is a bit long; can you please wrap? Will do. > > The note on hard-float targets does not seem completely clear to me: > I understand it requires glibc 2.31, but per the language it still > may not enabled by default even if in that case? What is the > situation on the default in the hard-float case? It retains the original behavior of not using GNU-stack notes at all. You have to use --with-glibc-version=2.31 in all stages of gcc build to enable GNU-stack note usage. > > If believe you do not have commit access, but if you share an updated > patch I can apply for you. > > Geral >
diff --git a/htdocs/gcc-10/changes.html b/htdocs/gcc-10/changes.html index ef27c9b..7736990 100644 --- a/htdocs/gcc-10/changes.html +++ b/htdocs/gcc-10/changes.html @@ -623,7 +623,14 @@ a work-in-progress.</p> </li> </ul> -<!-- <h3 id="mips">MIPS</h3> --> +<h3 id="mips">MIPS</h3> +<ul> + <li>The <code>mips*-*-linux*</code> targets now mark object files with appropriate GNU-stack note, + facilitating use of non-executable stack hardening on GNU/Linux. + The soft-float targets have this feature enabled by default, while + for hard-float targets it requires use of glibc 2.31 or later. + </li> +</ul> <!-- <h3 id="mep">MeP</h3> -->
From: "Dragan Mladjenovic" <dmladjenovic@wavecomp.com>