From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1XTp77-0005wg-I1 for ptxdist@pengutronix.de; Tue, 16 Sep 2014 11:31:57 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1XTp77-0005CY-GB for ptxdist@pengutronix.de; Tue, 16 Sep 2014 11:31:57 +0200 Date: Tue, 16 Sep 2014 11:31:57 +0200 From: Michael Olbrich Message-ID: <20140916093157.GC18865@pengutronix.de> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [ptxdist] undefined reference to '__stack_chk_fail' Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Tue, Sep 16, 2014 at 10:45:55AM +0530, Arpit Jain wrote: > Hi, > I am trying to compile imx-bootlets-src-10.08.01 with ptxdist-2014.09.0, > using OSELAS.Toolchain-2012.12.1, and it is giving a series of compilation > errors all similar to these two > > *undefined reference to '__stack_chk_fail'* > *undefined reference to '__stack_chk_guard'* > > A small research shows it is because of SSP package, which is protecting > stack and not allowing some libraries to link with bootlets, but I am still > not sure how to resolve this error. > > Any leads someone can provide? The imx-bootlets are not part of upstream ptxdist so I'm guessing you have some local rules for this. You've probably enabled the stack protector in the platformconfig. PTXdist will the inject the corresponding options into the build of all packages. You need to blacklist the stack protector for the imx-bootlets. search for _WRAPPER_BLACKLIST in the existing rules for examples. You need to add TARGET_HARDEN_STACK to the blacklist. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de