mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] undefined reference to '__stack_chk_fail'
@ 2014-09-16  5:15 Arpit Jain
  2014-09-16  9:31 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Arpit Jain @ 2014-09-16  5:15 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 522 bytes --]

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?

Thanks & Regards,
Arpit Jain

[-- Attachment #1.2: Type: text/html, Size: 724 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] undefined reference to '__stack_chk_fail'
  2014-09-16  5:15 [ptxdist] undefined reference to '__stack_chk_fail' Arpit Jain
@ 2014-09-16  9:31 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2014-09-16  9:31 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-16  9:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-16  5:15 [ptxdist] undefined reference to '__stack_chk_fail' Arpit Jain
2014-09-16  9:31 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox