
#13810: Gold linker fails ---------------------------------+---------------------------------------- Reporter: ksaric | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: linker Operating System: Linux | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+---------------------------------------- Comment (by nh2): Replying to [comment:8 bgamari]:
beyond just teaching GHC to use `ld` when possible
Do you mean `gold`?
Consequently, when we go to link the executable GHC will add this flag to its usual link flags, the latter of which assume that we are using BFD ld.
I don't quite understand this. Isn't the key problem here that the concept of the "ld program" and the "ld-options" are unhealthily mixed up? It seems to me that if one could explicitly distinguish "I want this linker" and "I want these ld-flags", the problem wouldn't exist, because then the choice of linker would not be propagated through `ld-options`. In other words, isn't the problem here that we're linking through the compiler (e.g. `gcc`) instead of the actual linker binary? Because otherwise we'd not even be using the `-fuse-ld` flag. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13810#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler