https://stackoverflow.com/questions/31333337/how-can-i-get-the-source-code-path-file-names-from-an-elf-filecompired-with readelf holds the key, but you don't want to dump strings willy-nilly. Use the -wi option to properly format the info.For example…