Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add --update-rpath to change between RPATH and RUNPATH #487

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adamse
Copy link

@adamse adamse commented Mar 23, 2023

Thank you!

Please do your best to include a regression test
so that the quality of future releases can be preserved.

@@ -79,6 +79,10 @@ the "/foo/lib" reference instead of the "/tmp" entry.
.IP --print-rpath
Prints the DT_RUNPATH or DT_RPATH for an executable or library.

.IP --update-rpath
Updates the DR_RPATH to a DT_RUNTPATH or vice versa if "--force-rpath" is given
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you elaborate on when you want to set the one over the other?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They have slightly different semantics as detailed in man ld-linux. Would saying that + linking to the other manpage be ok? Or should I add a small summary?

Copy link
Member

@Mic92 Mic92 Apr 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this get a different name. It's already confusing that we say --print-rpath and it's actually printing the DT_RUNPATH. "Update" might be also the wrong verb as it convert from DR_RPATH to a DT_RUNPATH, whereas update clashes already with --set-rpath

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants