[CRATER] Detect presence of .ctors/.dtors in linked objects by Kobzol · Pull Request #137044 · rust-lang/rust (original) (raw)

This PR serves for a crater run to examine the frequency of object files in the wild that use the .ctors/.dtors sections, which are problematic for LLD (#128286).

I'm not sure if there are any other sections that cause problems for LLD (?). I used readelf -S instead of the object crate, because it had a problem with opening some object files (notably CUDA, although we probably won't find these in crater anyway...). If it becomes a problem, I can also scan the libraries with object.

I'm pretty clueless about crater, so:

r? @lqd