FS#59540 - [binutils] Simple Static Linking is broken with 2.31 ld
Attached to Project:
Arch Linux
Opened by Thomas Dagenais (exrok) - Monday, 06 August 2018, 17:52 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Sunday, 12 August 2018, 18:43 GMT
Opened by Thomas Dagenais (exrok) - Monday, 06 August 2018, 17:52 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Sunday, 12 August 2018, 18:43 GMT
|
Details
Description:
Simple static linking is broken with 2.31 ld because it does not put program headers into a load section unless there is some other read only loaded section. Causes applications build with musl-gcc and musl-clang to segfault. The bug tracker for binutils shows it was fixed on 2018-07-23 and the last comment says "Fixed for 2.32 and on 2.31 branch", Link: https://sourceware.org/bugzilla/show_bug.cgi?id=23428 I don't know if a back-port is required or just an update on the 2.31 branch. Additional info: package: binutils 2.31.1-1 Steps to reproduce: http://www.openwall.com/lists/musl/2018/07/18/6 using musl-static |
This task depends upon
Closed by Bartłomiej Piotrowski (Barthalion)
Sunday, 12 August 2018, 18:43 GMT
Reason for closing: Fixed
Additional comments about closing: binutils 2.31.1-3
Sunday, 12 August 2018, 18:43 GMT
Reason for closing: Fixed
Additional comments about closing: binutils 2.31.1-3
Comment by
Evangelos Foutras (foutrelis) -
Tuesday, 07 August 2018, 23:38 GMT
Comment by
Eli Schwartz (eschwartz) -
Thursday, 09 August 2018, 07:39 GMT
Comment by
Evangelos Foutras (foutrelis) -
Thursday, 09 August 2018, 13:08 GMT
Comment by
Evangelos Foutras (foutrelis) -
Saturday, 11 August 2018, 15:13 GMT
Comment by
Eli Schwartz (eschwartz) - Sunday,
12 August 2018, 05:48 GMT
binutils 2.31.1-2 in [testing] includes the upstream fix for this
issue.
I tried rebuilding my busybox package using testing-x86_64-build
and it still results in a binary which segfaults.
Posted a question about that here:
https://sourceware.org/bugzilla/show_bug.cgi?id=23428#c7
binutils 2.31.1-3 should work (for real this time!).
Works for me at least. :)