All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] toolchain: Disable PIE for ARC
Date: Mon, 13 Mar 2017 21:52:01 +0000	[thread overview]
Message-ID: <1489441920.3088.15.camel@synopsys.com> (raw)
In-Reply-To: <20170313174145.40650-1-abrodkin@synopsys.com>

Hi,

On Mon, 2017-03-13 at 20:41 +0300, Alexey Brodkin wrote:
> Even though ARC's toolchain may build PIE binaries
> those binaries ane not really functional in runtime as of today.
> On ARC we don't expect text sections to be updated in run-time and
> so when dynamic loader attempts to patch text section we're getting
> access violation exception and application gets killed.
> 
> So until we improve support of PIE in run-time let's force-disable PIE
> in Buildroot for ARC. Oherwise autotools will continue to detect PIE and
> build OpenSSH and friends with PIE which leads to completely unexpected
> "crashes" later on on the target.
> 
> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Cc: Peter Korsgaard <peter@korsgaard.com>
> ---

My memory is getting worse with time...
We specifically focused on polishing PIE support in Linux on ARC
in arc-2016.09 so please disregard this patch for a moment.

We'll take a look at the issue with OpenSSH and hopefully will
just fix it keeping PIE enabled and working for ARC.

-Alexey

      reply	other threads:[~2017-03-13 21:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-13 17:41 [Buildroot] [PATCH] toolchain: Disable PIE for ARC Alexey Brodkin
2017-03-13 21:52 ` Alexey Brodkin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1489441920.3088.15.camel@synopsys.com \
    --to=alexey.brodkin@synopsys.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.