[PATCH 1/2] Build divdi3 only for architecture that required it

Joseph Myers joseph@codesourcery.com
Wed May 10 13:24:00 GMT 2017


On Wed, 19 Apr 2017, Adhemerval Zanella wrote:

> Now to actually fix it I can think of two possible solutions:
> 
>   1. Add divdi3 build on sparc32 as before the patch.
>   2. Enforce -Wl,-noexecstack on ld.so build.

3. Add .note.GNU-stack section in libgcc/config/sparc/lb1spc.S (possibly 
conditioned on defined(__ELF__) && defined(__linux__), as in other 
architecture-specific .S files).  That seems to me to be the right 
approach, and would fix it for other software using these libgcc functions 
as well.  And as a very small safe patch it should be suitable for 
backporting onto active GCC release branches.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list