[Bug ld/26626] Provide a hook to customize missing library error handling

2020-10-14 Thread sguelton at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26626 --- Comment #13 from sguelton at redhat dot com --- I've been giving extra thoughts to the missing-symbol sub command. Why would you pass the file where the missing symbol was found? Do you have any specific scenario in mind? I wond

[Bug ld/26626] Provide a hook to customize missing library error handling

2020-10-14 Thread sguelton at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26626 --- Comment #11 from sguelton at redhat dot com --- Thanks for the patch! I didn't provide the implementation of `missing-symbol` for lld, I'll sync with yours. Small notes: whatever the result of the error handling script (espec

[Bug ld/26626] Provide a hook to customize missing library error handling

2020-10-12 Thread sguelton at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26626 --- Comment #9 from sguelton at redhat dot com --- Something like that maybe (on good ol' RHEL7)? ``` #!/usr/bin/bash if [ "x$1" != xmissing-lib ] then # silently error exit 1 fi lib="$2" pkgs=$(yum provi

[Bug ld/26626] Provide a hook to customize missing library error handling

2020-10-12 Thread sguelton at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26626 --- Comment #7 from sguelton at redhat dot com --- For testing, something as simple as ``` #!/bin/sh echo "script: info: called with $*" ``` should do the trick :-) -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/26626] Provide a hook to customize missing library error handling

2020-10-07 Thread sguelton at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26626 --- Comment #4 from sguelton at redhat dot com --- For reference, I've added a documentation of the expectation for the error handling script in https://reviews.llvm.org/D87758 -- You are receiving this mail because: You are on the CC

[Bug ld/26626] Provide a hook to customize missing library error handling

2020-09-17 Thread sguelton at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26626 --- Comment #3 from sguelton at redhat dot com --- I Like the idea. I'll update the LLVM review to reflect that. For starters, lets focus on `normalizing' missing-library. I agree with missing-symbol foo -- You are receiving

[Bug ld/26626] Provide a hook to customize missing library error handling

2020-09-16 Thread sguelton at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26626 --- Comment #1 from sguelton at redhat dot com --- For reference, cross posted to https://reviews.llvm.org/D87758 -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/26626] Provide a hook to customize missing library error handling

2020-09-16 Thread sguelton at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26626 sguelton at redhat dot com changed: What|Removed |Added Summary|Provide a hook to customize |Provide a hook to

[Bug ld/26626] New: Provide a hook to customize missing library

2020-09-16 Thread sguelton at redhat dot com
: ld Assignee: unassigned at sourceware dot org Reporter: sguelton at redhat dot com Target Milestone: --- It would be nice to be able to provide a custom script that would help users to find missing libraries. A possible scenario could be: % clang /tmp/a.c -loauth -Wl