Support ELF build id
I was reading about dwarffs and separate debug info for use with gdb. It seems like a step in the right direction to enable users to use such features by tagging produced binaries with a build id by default.
I think it might be valuable to have build id's in the GHC team produced binary releases. Maybe there could even be separate debug symbols for those releases too?
--build-id when calling the linker on platforms/linkers that support it.
(Maybe) enhance release scripts to produce separate debug info for ELF platform releases.
(Maybe) enhance GHC to know how to produce separate debug info for libraries and binaries? (And teach Cabal to install them?)
- Initial build id "project": https://fedoraproject.org/wiki/RolandMcGrath/BuildID
- dwarffs: https://github.com/edolstra/dwarffs
- gdb separate debug info: https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html