This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]