[MSVC] cl.exe doesn't support static relocations with large address awareness.

94d5b96
Opened by Richard Diamond at 2023-11-21 07:15:38

See relocation-model from run-make.

  1. The fix for this issue is probably going to be detecting the static relocation-model argument and then passing /LARGEADDRESSAWARE:NO to the linker.

    Alex Crichton at 2015-08-27 18:17:48

  2. Triage: no change, as far as I can tell.

        // Mark all dynamic libraries and executables as compatible with the larger 4GiB a
    ddress
        // space available to x86 Windows binaries on x86_64.
        base.pre_link_args.push("/LARGEADDRESSAWARE".to_string());
    

    Steve Klabnik at 2017-03-01 15:12:16

  3. Triage:

    > git grep LARGEADDRESSAWARE
    src/librustc_target/spec/i686_pc_windows_msvc.rs:        .get_mut(&LinkerFlavor::Msvc).unwrap().push("/LARGEADDRESSAWARE".to_string());
    

    Steve Klabnik at 2019-03-12 17:35:19