Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use linker capability detection to improve linker use #9443

Merged
merged 3 commits into from
Nov 17, 2023

Commits on Nov 17, 2023

  1. Fix configuation of ldProgram

    Standard GNU `ld` ues `--relocatable` while `ld.gold` uses a `-relocatable`
    flag (with a single `-`). Code will now detect both versions.
    erikd authored and Mikolaj committed Nov 17, 2023
    Configuration menu
    Copy the full SHA
    fb14e4e View commit details
    Browse the repository at this point in the history
  2. Chain configuration of ldProgram

    `ldProgram` gets configured in two places, a seemingly default and
    a GHC specific version. The later needs to be updated so that it
    first calls the default configuration and then the new GHC version.
    erikd authored and Mikolaj committed Nov 17, 2023
    Configuration menu
    Copy the full SHA
    4336f4c View commit details
    Browse the repository at this point in the history
  3. Use linker capability detection to improve linker use

    The function `comperSupportsGhciLibs` has been renamed to
    `linkerSupportsGhciLibs` because its about the linker not the compiler.
    
    The function `comperSupportsGhciLibs` was using the compiler version
    as a proxy for whether the linker supports relocatable objects. Now
    support for relocatable objects is detected by running the linker.
    erikd authored and Mikolaj committed Nov 17, 2023
    Configuration menu
    Copy the full SHA
    53fc3d3 View commit details
    Browse the repository at this point in the history