[PATCH 1/2] Build divdi3 only for architecture that required it
Adhemerval Zanella
adhemerval.zanella@linaro.org
Wed May 10 20:24:00 GMT 2017
On 10/05/2017 10:23, Joseph Myers wrote:
> 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.
>
Done [1].
[1] https://gcc.gnu.org/ml/gcc-patches/2017-05/msg00824.html
More information about the Libc-alpha
mailing list