Add a toolchain for toolchain building
This commit is contained in:
committed by
Stanislav Erokhin
parent
5f8448b25d
commit
333685c7ee
@@ -0,0 +1,32 @@
|
||||
From 8ad4a8b83f3de8b7b283a845c5744147ba819c9d Mon Sep 17 00:00:00 2001
|
||||
From: Chris Packham <judge.packham@gmail.com>
|
||||
Date: Sat, 14 Sep 2019 22:17:28 +1200
|
||||
Subject: [PATCH] build/internals.sh: Handle pie executables
|
||||
|
||||
Fixes: #887
|
||||
|
||||
On some systems the file command identifies a pie executable as a shared
|
||||
object. Update do_finish() to handle this case so that they are stripped
|
||||
as well.
|
||||
|
||||
Signed-off-by: Chris Packham <judge.packham@gmail.com>
|
||||
---
|
||||
scripts/build/internals.sh | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/scripts/build/internals.sh b/scripts/build/internals.sh
|
||||
index 5d359979..821761c2 100644
|
||||
--- a/scripts/build/internals.sh
|
||||
+++ b/scripts/build/internals.sh
|
||||
@@ -83,7 +83,7 @@ do_finish() {
|
||||
case "${_type}" in
|
||||
*script*executable*)
|
||||
;;
|
||||
- *executable*)
|
||||
+ *executable*|*shared*object*)
|
||||
CT_DoExecLog ALL ${CT_HOST}-strip ${strip_args} "${_t}"
|
||||
;;
|
||||
esac
|
||||
--
|
||||
2.25.1
|
||||
|
||||
Reference in New Issue
Block a user