Strip binaries breaks reproducibility on binaries with multiple links
Context
For example x86_64-unknown-linux-gnu-gcc
and x86_64-unknown-linux-gnu-gcc-8.2.0
are the same files. When we traverse the directory, we might find first one or the other. The name is important because we keep that file name for the debug file.
Description
- We need to identify all links or similar files, remove them and replace them with symbolic links.
- To catch them all, we need the strip binaries script to detect binaries with multiple links and fail.
Acceptance Criteria
- We do not have anymore binaries to strip with multiple links.