binutils: Add fixes for binutils issue 16428
PATCH 1/1 binutils: Add fixes for binutils issue 16428
"ld:i386 crashes with -static -fPIE -pie"
https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/1266492
This adds in two upstream binutils fixes to avoid the internal error triggered by the combination of -static with -pie on x86 builds. This triggers a backtrace which then triggers a bug in glibc where the process ends up hanging on some systems with broken libcs.
We can't fix the libc but we can stop the internal error and hence avoid the hanging builds.
---
meta/recipes-devtools/binutils/binutils-2.24.inc +2 -0
@@ -28,6 +28,8 @@ SRC_URI = "\ file://fix-pr15815.patch \ file://fix-pr2404.patch \ file://fix-pr16476.patch \ + file://fix-pr16428a.patch \ + file://fix-pr16428b.patch \ " SRC_URI[md5sum] = "e0f71a7b2ddab0f8612336ac81d9636b"
meta/recipes-devtools/binutils/binutils/fix-pr16428a.patch new file +73 -0
73 lines not on this page · raw message
meta/recipes-devtools/binutils/binutils/fix-pr16428b.patch new file +73 -0
73 lines not on this page · raw message
Quoted 12 lines · Richard Purdie
"ld:i386 crashes with -static -fPIE -pie"
https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/1266492This adds in two upstream binutils fixes to avoid the internal error triggered by the combination of -static with -pie on x86 builds. This triggers a backtrace which then triggers a bug in glibc where the process ends up hanging on some systems with broken libcs.
We can't fix the libc but we can stop the internal error and hence avoid the hanging builds.
Signed-off-by Richard Purdie <[email protected]>
meta/recipes-devtools/binutils/binutils-2.24.inc SRC_URI = "\ · line 32
Quoted 2 lines
meta/recipes-devtools/binutils/binutils-2.24.inc +2
-0+ file://fix-pr16428a.patch \ + file://fix-pr16428b.patch \
Please add the Upstream-Status field in the two patch files stating this is a 'Backport'.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Quoted 13 lines · Otavio Salvador
Quoted 11 lines · Richard Purdie
"ld:i386 crashes with -static -fPIE -pie"
https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/1266492This adds in two upstream binutils fixes to avoid the internal error triggered by the combination of -static with -pie on x86 builds. This triggers a backtrace which then triggers a bug in glibc where the process ends up hanging on some systems with broken libcs.
We can't fix the libc but we can stop the internal error and hence avoid the hanging builds.
Quoted 6 lines
meta/recipes-devtools/binutils/binutils-2.24.inc SRC_URI = "\ · line 32
Quoted 3 lines
Signed-off-by Richard Purdie <[email protected]>meta/recipes-devtools/binutils/binutils-2.24.inc +2
-0+ file://fix-pr16428a.patch \ + file://fix-pr16428b.patch \Please add the Upstream-Status field in the two patch files stating this is a 'Backport'.
Well spotted, I did realise this after I sent the patch and I've already updated the version in master-next which is testing more widely at the moment.
Cheers,
Richard