]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
patchelf: add 3 fixes to optimize and fix uninative
authorMartin Jansa <Martin.Jansa@gmail.com>
Mon, 31 Jul 2023 19:10:05 +0000 (21:10 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 1 Aug 2023 08:49:14 +0000 (09:49 +0100)
commitf0499b58d1dd149300a349dde8f6664679df13e6
tree22a107bf8ffd94726a8d8bcc02d8dfbfd40202e1
parentf4c82fb6da89359679c52318a8ebab7295c233e8
patchelf: add 3 fixes to optimize and fix uninative

* uninative-3.10 and 4.0 doesn't work on e.g. ubuntu-18.04, because patchelf-uninative
  makes the binaries unusable and e.g. mkfs.ext4 segfaults in loader, see:
  https://github.com/NixOS/patchelf/issues/492

* mke2fs.real, mkfs.ext2.real, mkfs.ext3.real, mkfs.ext4.real are indentical
  binary with multiple hardlinks and we end calling patchelf-uninative 4
  times even when the interpreter is already set correctly from the build

  The issue was reported upstream with mkfs.ext4.real as possible reproducer:
  https://github.com/NixOS/patchelf/issues/492#issuecomment-1602862272

  To fix uninative we need to first release new uninative tarball and
  then upgrade it in master, mickledore, kirkstone, dunfell

* originally reported in:
  https://lists.openembedded.org/g/openembedded-core/message/182862
  with temporary work around (applicable locally without waiting for
  new uninative release):
  https://lists.openembedded.org/g/openembedded-core/message/183314

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/patchelf/patchelf/0001-Set-interpreter-only-when-necessary.patch [new file with mode: 0644]
meta/recipes-devtools/patchelf/patchelf/0002-align-startOffset-with-p_align-instead-of-pagesize-f.patch [new file with mode: 0644]
meta/recipes-devtools/patchelf/patchelf/0003-make-LOAD-segment-extensions-based-on-p_align-instea.patch [new file with mode: 0644]
meta/recipes-devtools/patchelf/patchelf_0.18.0.bb