]> code.ossystems Code Review - openembedded-core.git/commit
patchelf: fix segfault for binaries linked by gold
authorEd Bartosh <ed.bartosh@linux.intel.com>
Fri, 21 Jul 2017 11:48:13 +0000 (14:48 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 22 Jul 2017 07:12:36 +0000 (08:12 +0100)
commit4e4c96db4b1d2356b5d071cee6746a96eca20439
treea8b38e880fe26ff4e09541d1b54f9f4843de1c33
parent4e9b1e9798e7b12664d4afc611e430a988b6b1ca
patchelf: fix segfault for binaries linked by gold

Due to a bug in calculating adresses of modified program
headers patchelf breaks executables linked by Gold linker
causing them to segfault, e.g.
$ tmp/sysroots-components/x86_64/m4-native/usr/bin/m4 --help
Segmentation fault

This is reproducible only in some cases and only for executables
of ET_DYN type produced by Gold or by ld linked with pie.

This should be solved by fix-adjusting-startPage.patch that
fixes calculation logic.

[YOCTO #11785]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/patchelf/patchelf/fix-adjusting-startPage.patch [new file with mode: 0644]
meta/recipes-devtools/patchelf/patchelf_0.9.bb