Skip to content

Commit f63eef7

Browse files
committed
toolchain: Disable PIE for ARC
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 <[email protected]> Cc: Thomas Petazzoni <[email protected]> Cc: Peter Korsgaard <[email protected]>
1 parent 083c073 commit f63eef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toolchain/Config.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ config BR2_TOOLCHAIN_USES_GLIBC
1919

2020
config BR2_TOOLCHAIN_USES_UCLIBC
2121
bool
22-
select BR2_TOOLCHAIN_SUPPORTS_PIE if !BR2_m68k && !BR2_microblaze && !BR2_STATIC_LIBS
22+
select BR2_TOOLCHAIN_SUPPORTS_PIE if !BR2_arc && !BR2_m68k && !BR2_microblaze && !BR2_STATIC_LIBS
2323

2424
config BR2_TOOLCHAIN_USES_MUSL
2525
bool

0 commit comments

Comments
 (0)