This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Pull in ld.so for libresolv
- From: Maxim Kuvyrkov <maxim at codesourcery dot com>
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: Chung-Lin Tang <cltang at codesourcery dot com>,<libc-alpha at sourceware dot org>,"Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Thu, 22 Sep 2011 05:43:58 +1200
- Subject: Re: [PATCH] Pull in ld.so for libresolv
- References: <4E7A1BFA.6010209@codesourcery.com> <20110921172813.07BF82C099@topped-with-meat.com>
On 22/09/2011, at 5:28 AM, Roland McGrath wrote:
> This is due to using (IMHO broken) compiler versions (like Ubuntu's)
> that implicitly set -fstack-protector by default.
No, this is due to libresolv now being compiled with -fstack-protector:
--------------------
2011-08-17 Ulrich Drepper <drepper@gmail.com>
* Makeconfig (override CFLAGS): Add library-specific CFLAGS.
* resolv/Makefile: Define CFLAGS-libresolv.
Index: resolv/Makefile
===================================================================
--- resolv/Makefile (revision 15223)
+++ resolv/Makefile (revision 15224)
@@ -79,6 +79,9 @@ CPPFLAGS += -Dgethostbyname=res_gethostb
-Dgetnetbyname=res_getnetbyname \
-Dgetnetbyaddr=res_getnetbyaddr
+ifeq (yes,$(have-ssp))
+CFLAGS-libresolv += -fstack-protector
+endif
CFLAGS-res_hconf.c = -fexceptions
# The BIND code elicits some harmless warnings.
-------------------
Thank you,
--
Maxim Kuvyrkov
CodeSourcery / Mentor Graphics