[PATCH] arm: setjmp/longjmp: fix PIC vs SHARED thinkos
Joseph Myers
joseph@codesourcery.com
Fri Sep 18 11:34:00 GMT 2015
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
More information about the Libc-alpha
mailing list