rust/compiler/rustc_codegen_ssa/src/back
Jack Huey ec0e0d1e7a
Rollup merge of #85274 - luqmana:linker-is-gnu-gc-sections, r=petrochenkov
Only pass --[no-]gc-sections if linker is GNU ld.

Fixes a regression from #84468 where linking now fails with solaris linkers. LinkerFlavor::Gcc does not always mean GNU ld specifically. And in the case of at least the solaris ld in illumos, that flag is unrecognized and will cause the linking step to fail.

Even though removing the `is_like_solaris` branch from `gc_sections` in #84468 made sense as `-z ignore/record` are more analogous to the `--[no-]-as-needed` flags, it inadvertently caused solaris linkers to be passed the `--gc-sections` flag. So let's just change it to be more explicit about when we pass those flags.
2021-05-18 22:36:04 -04:00
..
rpath mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
archive.rs Implement RFC 2951: Native link modifiers 2021-05-05 16:04:25 -07:00
command.rs Instruct lld that our @ files are posix-style, not Windows 2020-10-05 08:01:44 -04:00
link.rs Auto merge of #83610 - bjorn3:driver_cleanup, r=cjgillot 2021-05-12 08:38:03 +00:00
linker.rs Rollup merge of #85274 - luqmana:linker-is-gnu-gc-sections, r=petrochenkov 2021-05-18 22:36:04 -04:00
lto.rs Support -C passes in NewPM 2021-05-08 10:58:08 +02:00
metadata.rs Better error messages 2021-05-10 09:49:42 +02:00
mod.rs Use the object crate for metadata reading 2021-05-07 18:48:58 +02:00
rpath.rs Fix tests 2021-03-03 11:22:44 +01:00
symbol_export.rs Use () for codegen queries. 2021-05-12 13:58:46 +02:00
write.rs Use () for codegen queries. 2021-05-12 13:58:46 +02:00