compiler-explorer / compiler-explorer/compiler-explorer
[REQUEST]: Ability to view or select version of system libraries like libc linked at program runtime
- Dominant language
- TypeScript
- Stars
- 19.1k
- Forks
- 2.1k
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 67
Description
### Is your feature request related to a problem? Please describe
Related to issue https://github.com/compiler-explorer/compiler-explorer/issues/8579, I have a C program compiled as C23 that produces pre-C23 behavior for the `strtol()` function. On my personal system this was related to using an older version of glibc. Unlike on my personal computer, I have no way of querying which glibc version (or other libc version) is linked by my program at execution time. Thus I also have no way to change which version of libc is linked.
### Describe the solution you'd like
In the libraries option menu there would be a listing of what libraries are currently linked into the program at runtime, including system libraries like libc and libstdc++. It could also be a separate tab or dropdown.
Even nicer would be the ability to select which specific system libraries and versions to link. For example glibc 2.38 vs glibc 2.30 vs musl ... etc.
### Describe alternatives you've considered
There might be better places to implement this type of behavior, whether as a compiler/linker flag option or command line argument, but I am unsure what the mechanics of those might be.
### Additional context
Not applicable
Contributor guide
Assessment
This issue has not been assessed yet.