compnerd wrote: > > I wonder if we can do this check statically instead. > > I'm not sure I follow, what do you mean by "statically" in this context?
Well, if this is less about ensuring the loader does the right thing and more about the encoding, we could simply check that the value for `DT_RPATH` or `DT_RUNPATH` is correct. That can be done by simply strategically inspecting the binary rather than executing the target. https://github.com/llvm/llvm-project/pull/137411 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits