* [Buildroot] [PATCH] toolchain: Disable PIE for ARC
@ 2017-03-13 17:41 Alexey Brodkin
2017-03-13 21:52 ` Alexey Brodkin
0 siblings, 1 reply; 2+ messages in thread
From: Alexey Brodkin @ 2017-03-13 17:41 UTC (permalink / raw)
To: buildroot
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>
---
toolchain/Config.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/toolchain/Config.in b/toolchain/Config.in
index de0158567..26b5e62f1 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -19,7 +19,7 @@ config BR2_TOOLCHAIN_USES_GLIBC
config BR2_TOOLCHAIN_USES_UCLIBC
bool
- select BR2_TOOLCHAIN_SUPPORTS_PIE if !BR2_m68k && !BR2_microblaze && !BR2_STATIC_LIBS
+ select BR2_TOOLCHAIN_SUPPORTS_PIE if !BR2_arc && !BR2_m68k && !BR2_microblaze && !BR2_STATIC_LIBS
config BR2_TOOLCHAIN_USES_MUSL
bool
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] toolchain: Disable PIE for ARC
2017-03-13 17:41 [Buildroot] [PATCH] toolchain: Disable PIE for ARC Alexey Brodkin
@ 2017-03-13 21:52 ` Alexey Brodkin
0 siblings, 0 replies; 2+ messages in thread
From: Alexey Brodkin @ 2017-03-13 21:52 UTC (permalink / raw)
To: buildroot
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-13 21:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-13 17:41 [Buildroot] [PATCH] toolchain: Disable PIE for ARC Alexey Brodkin
2017-03-13 21:52 ` Alexey Brodkin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox