Skip to content

Refactor handling of object merging

Ben Gamari requested to merge wip/T17962b into master

Previously to merge a set of object files we would invoke the linker as usual, adding -r to the command-line. However, this can result in non-sensical command-lines which causes lld to balk (#17962 (closed)).

To avoid this we introduce a new tool setting into GHC, -pgmlm, which is the linker which we use to merge object files.

Merge request reports