This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] arm: setjmp/longjmp: fix PIC vs SHARED thinkos
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: <libc-alpha at sourceware dot org>, David Lamparter <equinox-gentoo at diac24 dot net>
- Date: Fri, 18 Sep 2015 11:34:25 +0000
- Subject: Re: [PATCH] arm: setjmp/longjmp: fix PIC vs SHARED thinkos
- Authentication-results: sourceware.org; auth=none
- References: <201109191506 dot 36854 dot vapier at gentoo dot org> <1442559907-31957-1-git-send-email-vapier at gentoo dot org>
On Fri, 18 Sep 2015, Mike Frysinger wrote:
> From: David Lamparter <equinox-gentoo@diac24.net>
>
> The logic in setjmp/__longjmp incorrectly uses "PIC" to figure out
> whether the code is going into a shared library when it should be
> using "SHARED". If you build glibc with a gcc version that has PIE
> enabled by default, then the code will try to use symbols that are
> only in the shared library.
>
> 2015-09-18 David Lamparter <equinox-gentoo@diac24.net>
>
> * sysdeps/arm/setjmp.S: Change PIC to SHARED.
> * sysdeps/arm/__longjmp.S: Likewise
OK.
--
Joseph S. Myers
joseph@codesourcery.com