Fix SysTools.readElfSection on platforms where "readelf" have different name
Some linux systems may use target-prefixed names for binutils. For example on my Exherbo Linux readelf is named as x86_64-pc-linux-gnu-readelf. This leads to errors like:
readelf: createProcess: runInteractiveProcess: exec: does not exist (No such file or directory)
To fix this GHC needs to give ability to configure name of this tool (like SysTools.runSplit and SysTools.runCc) or use libelf-like library.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.10.2 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |