diff options
Diffstat (limited to 'meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-scripts-Use-fixed-input-and-output-files-instead-of-.patch')
-rw-r--r-- | meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-scripts-Use-fixed-input-and-output-files-instead-of-.patch | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-scripts-Use-fixed-input-and-output-files-instead-of-.patch b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-scripts-Use-fixed-input-and-output-files-instead-of-.patch index 9ba1c076e8..a5ded602e5 100644 --- a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-scripts-Use-fixed-input-and-output-files-instead-of-.patch +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-scripts-Use-fixed-input-and-output-files-instead-of-.patch | |||
@@ -1,8 +1,7 @@ | |||
1 | From 694eba7bb974f6b8bd308804cb24350150108b2b Mon Sep 17 00:00:00 2001 | 1 | From 694eba7bb974f6b8bd308804cb24350150108b2b Mon Sep 17 00:00:00 2001 |
2 | From: He Zhe <zhe.he@windriver.com> | 2 | From: He Zhe <zhe.he@windriver.com> |
3 | Date: Wed, 21 Nov 2018 15:12:43 +0800 | 3 | Date: Wed, 21 Nov 2018 15:12:43 +0800 |
4 | Subject: [PATCH] scripts: Use fixed input and output files instead of pipe for | 4 | Subject: [PATCH] scripts: Use fixed input and output files instead of pipe for here-doc |
5 | here-doc | ||
6 | 5 | ||
7 | There was a bug of "as" in binutils that when it checks if the input file and | 6 | There was a bug of "as" in binutils that when it checks if the input file and |
8 | output file are the same one, it would not check if they are on the same block | 7 | output file are the same one, it would not check if they are on the same block |
@@ -44,14 +43,14 @@ Signed-off-by: He Zhe <zhe.he@windriver.com> | |||
44 | 1 file changed, 4 insertions(+), 1 deletion(-) | 43 | 1 file changed, 4 insertions(+), 1 deletion(-) |
45 | 44 | ||
46 | diff --git a/scripts/gcc-goto.sh b/scripts/gcc-goto.sh | 45 | diff --git a/scripts/gcc-goto.sh b/scripts/gcc-goto.sh |
47 | index 083c526..8dfac55 100755 | 46 | index 8b980fb22..d256a9438 100755 |
48 | --- a/scripts/gcc-goto.sh | 47 | --- a/scripts/gcc-goto.sh |
49 | +++ b/scripts/gcc-goto.sh | 48 | +++ b/scripts/gcc-goto.sh |
50 | @@ -3,7 +3,7 @@ | 49 | @@ -3,7 +3,7 @@ |
51 | # Test for gcc 'asm goto' support | 50 | # Test for gcc 'asm goto' support |
52 | # Copyright (C) 2010, Jason Baron <jbaron@redhat.com> | 51 | # Copyright (C) 2010, Jason Baron <jbaron@redhat.com> |
53 | 52 | ||
54 | -cat << "END" | $@ -x c - -c -o /dev/null >/dev/null 2>&1 && echo "y" | 53 | -cat << "END" | $@ -x c - -fno-PIE -c -o /dev/null |
55 | +cat << "END" > ./input | 54 | +cat << "END" > ./input |
56 | int main(void) | 55 | int main(void) |
57 | { | 56 | { |
@@ -61,8 +60,8 @@ index 083c526..8dfac55 100755 | |||
61 | } | 60 | } |
62 | END | 61 | END |
63 | + | 62 | + |
64 | +$@ -x c ./input -c -o ./output && echo "y" | 63 | +$@ -x c ./input -fno-PIE -c -o ./output |
65 | +rm ./input ./output | 64 | +rm ./input ./output |
66 | -- | 65 | -- |
67 | 2.7.4 | 66 | 2.19.1 |
68 | 67 | ||