From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/patchelf: Pull in upstream bugfixes
Date: Wed, 14 Oct 2020 23:52:20 +0200 [thread overview]
Message-ID: <20201014235220.3f64ed33@windsurf> (raw)
In-Reply-To: <20201005185034.37131-1-conrad.ratschan@rockwellcollins.com>
On Mon, 5 Oct 2020 13:50:34 -0500
Conrad Ratschan <conrad.ratschan@rockwellcollins.com> wrote:
> On Buildroot 2020.02.6 when building iputils for powerpc with
> BR2_PIC_PIE enabled, the arping/rdisc/tftpd binaries will segfault at
> runtime. This can be traced back to a few bugs in patchelf corrupting
> the ELFs when resizing the RPATH to replace "$ORIGIN/" with "/usr/sbin".
>
> This patch pulls in upstream fixes to prevent the binaries from being
> needlessly inflated, prevent the startPage from always being adjusted,
> fix a few minor bugs, and fix incorrect endianness handling.
>
> Signed-off-by: Conrad Ratschan <conrad.ratschan@rockwellcollins.com>
> ---
> ...file-sizes-needlessly-and-allow-bina.patch | 176 ++++++++++++++++++
> ...ry-corruption-when-rerunning-patchel.patch | 55 ++++++
> .../0007-fix-adjusting-startPage.patch | 45 +++++
> ...stead-of-sh_addr-when-checking-alrea.patch | 38 ++++
> ...ignoring-the-first-section-header-wh.patch | 41 ++++
> ...ix-endianness-issues-for-powerpc-PIE.patch | 80 ++++++++
> 6 files changed, 435 insertions(+)
> create mode 100644 package/patchelf/0005-Avoid-inflating-file-sizes-needlessly-and-allow-bina.patch
> create mode 100644 package/patchelf/0006-Fix-shared-library-corruption-when-rerunning-patchel.patch
> create mode 100644 package/patchelf/0007-fix-adjusting-startPage.patch
> create mode 100644 package/patchelf/0008-Use-sh_offset-instead-of-sh_addr-when-checking-alrea.patch
> create mode 100644 package/patchelf/0009-Fix-issue-66-by-ignoring-the-first-section-header-wh.patch
> create mode 100644 package/patchelf/0010-Fix-endianness-issues-for-powerpc-PIE.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2020-10-14 21:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-05 18:50 [Buildroot] [PATCH 1/1] package/patchelf: Pull in upstream bugfixes Conrad Ratschan
2020-10-06 13:43 ` Matthew Weber
2020-10-06 14:26 ` Conrad Ratschan
2020-10-06 14:33 ` Thomas Petazzoni
2020-10-06 15:00 ` Conrad Ratschan
2020-10-14 21:52 ` Thomas Petazzoni [this message]
2020-10-28 13:23 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201014235220.3f64ed33@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.