From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1L0axZ-0005CU-MT for garchives@archives.gentoo.org; Thu, 13 Nov 2008 12:06:05 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5E0D4E02FB; Thu, 13 Nov 2008 12:06:05 +0000 (UTC) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by pigeon.gentoo.org (Postfix) with ESMTP id 1DE5CE02FB for ; Thu, 13 Nov 2008 12:06:05 +0000 (UTC) Received: by nf-out-0910.google.com with SMTP id c7so504850nfi.26 for ; Thu, 13 Nov 2008 04:06:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type :date:message-id:mime-version:x-mailer; bh=2WlhM3XIFeyPt0P5aiGhGjsp8fDtzULSko6WdRuSDkI=; b=D6pf4dnh60o06+OK2R/NcLARqb/JN/kRFYFqjM0i6MPaqVvZiw6UGeyvOCf38O8BPF VTNFpy6DRW8eUGt8A9x1V1FnEIOWw2Nwjg/kI/6E8rSy5l+VykzPe2Y555/MIJTCYNDO t67o6Rf8m/ds95gBzY3/mmTBvPLSTTTGrmc58= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer; b=niWQxW9ddb1alTnvMCu1RBd0ZeIMlwjFQ4FJ3m3skVP2yuH+D3gdBHYA4NRlo98/X/ BlQG9csuGfL9th5m5lsiyi4B6xVohQZTT6kd5mk1HntfeFP81xTsMAhAhpQLrcgOPzOg Nk2osWeBD9B00FlIMhhBMS8MXaqeR8o6J6ll4= Received: by 10.210.40.10 with SMTP id n10mr11332175ebn.102.1226577963031; Thu, 13 Nov 2008 04:06:03 -0800 (PST) Received: from ?10.65.0.5? (149-13-151.oke2-bras2.adsl.tele2.no [90.149.13.151]) by mx.google.com with ESMTPS id 7sm4436367eyb.1.2008.11.13.04.06.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 13 Nov 2008 04:06:02 -0800 (PST) Subject: [gentoo-embedded] [PATCH] uclibc-0.9.30 and broken gcc-3.4.6 From: Natanael Copa To: gentoo-embedded@lists.gentoo.org Content-Type: multipart/mixed; boundary="=-mYVEtEKTX6D+pDOaX+tV" Date: Thu, 13 Nov 2008 13:05:57 +0100 Message-Id: <1226577957.31131.130.camel@nc> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@lists.gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 X-Archives-Salt: 44999420-77e7-47d1-8a22-1e426584d3a2 X-Archives-Hash: 23346fae5f18e3c212e275013c9db480 --=-mYVEtEKTX6D+pDOaX+tV Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi, After compiling uclibc with gcc-3.4.6 (current hardened compiler) any program linked with -lpthread just segfaulted. shows up that gcc first omits the framepointer then tries to access it. To work around it, gcc-3.4.6 need to add -fno-omit-framepointer to libpthreads.old/* attatched patch will help you to build a working hardened uclibc-0.9.30. -nc --=-mYVEtEKTX6D+pDOaX+tV Content-Disposition: attachment; filename=pthreads-fno-omit-frame-pointer.patch Content-Type: text/x-patch; name=pthreads-fno-omit-frame-pointer.patch; charset=us-ascii Content-Transfer-Encoding: 7bit --- uClibc-0.9.30.orig/libpthread/linuxthreads.old/Makefile.in Thu Nov 13 09:53:27 2008 +++ uClibc-0.9.30/libpthread/linuxthreads.old/Makefile.in Thu Nov 13 10:01:35 2008 @@ -59,6 +59,13 @@ libc-static-y += $(libpthread_OUT)/libc_pthread_init.o libc-shared-y += $(libpthread_libc_OBJ:.o=.oS) +ifeq ($(TARGET_ARCH),i386) +# Most files must not be compiled without frame pointer since we need +# the frame base address which is stored in %ebp unless the frame pointer +# is optimized out. +CFLAGS += -fno-omit-frame-pointer -mpreferred-stack-boundary=4 +endif + libpthread-static-y += $(patsubst $(libpthread_DIR)/%.c,$(libpthread_OUT)/%.o,$(libpthread_SPEC_SRC)) libpthread-shared-y += $(patsubst $(libpthread_DIR)/%.c,$(libpthread_OUT)/%.oS,$(libpthread_SPEC_SRC)) --=-mYVEtEKTX6D+pDOaX+tV--