Skip to content
Snippets Groups Projects
Commit cf2738cb authored by Vivek Das Mohapatra's avatar Vivek Das Mohapatra
Browse files

Fix initial elf class / architecture constraints selection

We used to set the elf class (32 vs 64) and machine (eg EM_X86_64)
from the first DSO we found in the path, but that was only ever
coincidentally corect - if we had found a foreign arch (eg i386 or
x32 from an x86_64 binary) then our whole link chain would have
been pulled from the wrong architacture.

Instead we should pick a DSO which has _already been successfully
loaded_ and use that to pick only matching DSOs.
parent e0dab9e4
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment