This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1/2] Build divdi3 only for architecture that required it
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 10 May 2017 13:23:51 +0000
- Subject: Re: [PATCH 1/2] Build divdi3 only for architecture that required it
- Authentication-results: sourceware.org; auth=none
- References: <1489671790-7611-1-git-send-email-adhemerval.zanella@linaro.org> <mvmbmt1uxvl.fsf@hawking.suse.de> <5067790e-50b6-d2c1-4466-26d79fc23166@linaro.org> <af83ffde-83d3-d7d1-d45e-7c379b7e7123@linaro.org> <ca5b3de6-819a-1c9a-a722-a9069bf6c74f@linaro.org> <alpine.DEB.2.20.1704182118100.1253@digraph.polyomino.org.uk> <0ef59b2d-8f19-8646-a773-565dd14704f4@linaro.org>
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