-
Notifications
You must be signed in to change notification settings - Fork 396
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
Revamp ldd API #2802
Revamp ldd API #2802
Conversation
Signed-off-by: Chris Koch <chrisko@google.com>
Signed-off-by: Chris Koch <chrisko@google.com>
Signed-off-by: Chris Koch <chrisko@google.com>
3b3caaf
to
50c2adc
Compare
Removes the function that returns FileInfo, remaining is the API that just returns paths. Provides separate functions for just listing the dependency files, just the way they are in the binary, as well as a function for listing the dependency files and all the files they point to through symlinks. Signed-off-by: Chris Koch <chrisko@google.com>
Signed-off-by: Chris Koch <chrisko@google.com>
Codecov ReportAttention:
... and 1 file with indirect coverage changes 📢 Thoughts on this report? Let us know! |
it all looks fine but was there some driving reason or is this part of making things better. Also I did stumble on this today: This is on osx. I wonder if we should use it when runtime.GOOS=darwin and our target is darwin? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the behaviour of the lddfiles command still the same? Printing the file name was useful in scripts.
I can add that back.
Yes, I couldn't get a list of just the un-followed symlink files out of the current API for warptools/ldshim#2 |
Signed-off-by: Chris Koch <chrisko@google.com>
PTAL |
if you can add it back, that would be nice. A common usage pattern is something like |
I already added it back
…On Sun, Nov 5, 2023 at 22:17 ron minnich ***@***.***> wrote:
if you can add it back, that would be nice. A common usage pattern is
something like
lddfiles /bin/this /bin/that | cpio -o
and it's critical that /bin/that and /bin/that be included. That should
probably be a test ...
—
Reply to this email directly, view it on GitHub
<#2802 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPG3EXNWBHWFO6BSVFZLNDYDBXHZAVCNFSM6AAAAAA66PRHGWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJUGE2TIMBVHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Ping? |
New:
Neither of them return the original file name in paths anymore.
Removing: