From: bugzilla at busybox.net <bugzilla@busybox.net>
To: buildroot@busybox.net
Subject: [Buildroot] [Bug 11101] New: host-patchelf Endian Issue with relative RPATH
Date: Tue, 19 Jun 2018 14:14:24 +0000 [thread overview]
Message-ID: <bug-11101-163@https.bugs.busybox.net/> (raw)
https://bugs.busybox.net/show_bug.cgi?id=11101
Bug ID: 11101
Summary: host-patchelf Endian Issue with relative RPATH
Product: buildroot
Version: 2018.02.2
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: bryce.ferguson at rockwellcollins.com
CC: buildroot at uclibc.org
Target Milestone: ---
Hello,
This problem was discovered with the package: sudo. In builds for PowerPC
architecture, the sudo ELF file contains an invalid symbol after fix-rpath
script is run. The following entry below:
0x1d000000 (<unknown>: 1d000000) 0xb77
When it should be:
0x0000001d (RUNPATH) Library runpath
Should be the RUNPATH entry (0x1d). Because of this, sudo cannot find the
proper libraries at runtime and fails to execute. It appears, when looking at
the readelf output, that there is an endian problem here when the host differs
from the target.
I have traced this to the host-patchelf utility. (Patchelf is executed by the
fix-rpath script.) When the --make-rpath-relative option is specified, there
is a possibility that this can occur. Wondering why this does not occur on
other packages, I added the --debug option to the patchelf command in the
fix-rpath script and ran the build again. This time, I see that most of the
packages in my build report "No RPATH to make relative", except for sudo.
I've tried to build for mutliple architectures (ARM, x86/_64, PPC). So far
this only occurs for PowerPC builds. Perhaps a possible workaround having to
do with the install location of the sudo libraries is needed?
Thanks!
--
You are receiving this mail because:
You are on the CC list for the bug.
next reply other threads:[~2018-06-19 14:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-19 14:14 bugzilla at busybox.net [this message]
2018-06-26 20:04 ` [Buildroot] [Bug 11101] host-patchelf Endian Issue with relative RPATH bugzilla at busybox.net
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=bug-11101-163@https.bugs.busybox.net/ \
--to=bugzilla@busybox.net \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox