Summary: | app-misc/pax-utils: lddtree: Incomplete support for relative DT_RPATH / DT_RUNPATH | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Arfrever Frehtes Taifersar Arahesis <arfrever.fta> |
Component: | Current packages | Assignee: | SpanKY <vapier> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | toolchain |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Arfrever Frehtes Taifersar Arahesis
2018-04-20 01:51:14 UTC
*** This bug has been marked as a duplicate of bug 589434 *** All problems in lddtree.py and at least one problem lddtree.sh are unrelated to scanelf. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=8d2fa4fe36cf525bc5a16ec176d0fbe79cfab8e6 commit 8d2fa4fe36cf525bc5a16ec176d0fbe79cfab8e6 Author: Mike Frysinger <vapier@chromium.org> AuthorDate: 2021-04-16 15:06:08 +0000 Commit: Mike Frysinger <vapier@gentoo.org> CommitDate: 2021-04-16 15:06:08 +0000 lddtree: add --cwd option Rather than rely on ambient environmental settings (the cwd), allow users to override the cwd explicitly when processing paths. Bug: https://bugs.gentoo.org/653586 Signed-off-by: Mike Frysinger <vapier@gentoo.org> lddtree.py | 50 ++++++++++++++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 20 deletions(-) https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=080a59e801e121ebadc3e1e170e57ca27de15876 commit 080a59e801e121ebadc3e1e170e57ca27de15876 Author: Mike Frysinger <vapier@chromium.org> AuthorDate: 2021-04-16 14:49:56 +0000 Commit: Mike Frysinger <vapier@gentoo.org> CommitDate: 2021-04-16 14:49:56 +0000 lddtree: handle relative ldpaths Tweak the ldpath logic to handle all relative paths relative to the cwd instead of the root. Such ELFs are uncommon and weird, but not invalid, so might as well. Bug: https://bugs.gentoo.org/653586 Signed-off-by: Mike Frysinger <vapier@gentoo.org> lddtree.py | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=583af0f01ece9c63042a8a12bac11aaa53faa19b commit 583af0f01ece9c63042a8a12bac11aaa53faa19b Author: Mike Frysinger <vapier@chromium.org> AuthorDate: 2021-04-16 14:37:46 +0000 Commit: Mike Frysinger <vapier@gentoo.org> CommitDate: 2021-04-16 14:37:46 +0000 lddtree: handle ${ORIGIN} like $ORIGIN Bug: https://bugs.gentoo.org/653586 Signed-off-by: Mike Frysinger <vapier@gentoo.org> lddtree.py | 2 ++ lddtree.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) lddtree.py should handle ${ORIGIN} & relative paths now i made a minor fix for ${ORIGIN} to lddtree.sh, but not really planning on investing a lot in that file. feel free to attach a patch if you think it'd be easy and we can review, but eh. |