rust/compiler
Noratrieb a954c51280 Support raw-dylib link kind on ELF
raw-dylib is a link kind that allows rustc to link against a library
without having any library files present.
This currently only exists on Windows. rustc will take all the symbols
from raw-dylib link blocks and put them in an import library, where they
can then be resolved by the linker.

While import libraries don't exist on ELF, it would still be convenient
to have this same functionality. Not having the libraries present at
build-time can be convenient for several reasons, especially
cross-compilation. With raw-dylib, code linking against a library can be
cross-compiled without needing to have these libraries available on the
build machine. If the libc crate makes use of this, it would allow
cross-compilation without having any libc available on the build
machine. This is not yet possible with this implementation, at least
against libc's like glibc that use symbol versioning.
The raw-dylib kind could be extended with support for symbol versioning
in the future.

This implementation is very experimental and I have not tested it very
well. I have tested it for a toy example and the lz4-sys crate, where it
was able to successfully link a binary despite not having a
corresponding library at build-time.
2025-02-26 19:09:51 +01:00
..
rustc Fix overcapturing, unsafe extern blocks, and new unsafe ops 2025-02-22 00:01:48 +00:00
rustc_abi Rollup merge of #137334 - compiler-errors:edition-2024-fresh-2, r=saethlin,traviscross 2025-02-23 02:44:18 -05:00
rustc_arena Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_ast Auto merge of #137420 - matthiaskrgr:rollup-rr0q37f, r=matthiaskrgr 2025-02-22 13:32:44 +00:00
rustc_ast_ir Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_ast_lowering lower attr spans and inline some functions to hopefully mitigate perf regressions 2025-02-24 14:37:58 +01:00
rustc_ast_passes Introduce new-style attribute parsers for several attributes 2025-02-24 14:31:17 +01:00
rustc_ast_pretty Rollup merge of #137423 - Urgau:imprv-pretty-hir, r=compiler-errors 2025-02-23 02:44:19 -05:00
rustc_attr_data_structures pretty print hir attributes 2025-02-24 14:31:19 +01:00
rustc_attr_parsing fix #137589 2025-02-25 18:17:32 +01:00
rustc_baked_icu_data Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_borrowck Rollup merge of #137529 - klensy:unused3, r=lcnr 2025-02-26 04:15:04 +01:00
rustc_builtin_macros Introduce new-style attribute parsers for several attributes 2025-02-24 14:31:17 +01:00
rustc_codegen_cranelift Auto merge of #137608 - fmease:rollup-h4siso6, r=fmease 2025-02-25 19:36:17 +00:00
rustc_codegen_gcc Rollup merge of #137595 - folkertdev:remove-simd-pow-powi, r=RalfJung 2025-02-25 13:07:40 +01:00
rustc_codegen_llvm Rollup merge of #137603 - davidtwco:extern-types-no-deref, r=lcnr 2025-02-26 04:15:06 +01:00
rustc_codegen_ssa Support raw-dylib link kind on ELF 2025-02-26 19:09:51 +01:00
rustc_const_eval Introduce new-style attribute parsers for several attributes 2025-02-24 14:31:17 +01:00
rustc_data_structures Auto merge of #137354 - FractalFir:intern_with_cap, r=FractalFir 2025-02-26 13:01:45 +00:00
rustc_driver Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_driver_impl Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_error_codes Rollup merge of #137489 - RalfJung:no-more-rustc_intrinsic_must_be_overridden, r=oli-obk 2025-02-24 19:21:47 -05:00
rustc_error_messages Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_errors Auto merge of #137571 - tgross35:rollup-i1tcnv1, r=tgross35 2025-02-25 05:41:34 +00:00
rustc_expand Introduce new-style attribute parsers for several attributes 2025-02-24 14:31:17 +01:00
rustc_feature Support raw-dylib link kind on ELF 2025-02-26 19:09:51 +01:00
rustc_fluent_macro Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_fs_util Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_graphviz Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_hashes Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_hir lower attr spans and inline some functions to hopefully mitigate perf regressions 2025-02-24 14:37:58 +01:00
rustc_hir_analysis Rollup merge of #137613 - davidtwco:const-traits-variances, r=compiler-errors 2025-02-26 04:15:08 +01:00
rustc_hir_pretty pretty print hir attributes 2025-02-24 14:31:19 +01:00
rustc_hir_typeck Rollup merge of #137464 - chenyukang:yukang-fix-136343, r=estebank 2025-02-25 13:07:29 +01:00
rustc_incremental Change span field accesses to method calls 2025-02-24 14:22:31 +01:00
rustc_index Rollup merge of #136610 - Jarcho:range_idx, r=Noratrieb 2025-02-24 02:11:32 -05:00
rustc_index_macros Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_infer Rollup merge of #136610 - Jarcho:range_idx, r=Noratrieb 2025-02-24 02:11:32 -05:00
rustc_interface Auto merge of #137420 - matthiaskrgr:rollup-rr0q37f, r=matthiaskrgr 2025-02-22 13:32:44 +00:00
rustc_lexer Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00
rustc_lint Rollup merge of #137444 - compiler-errors:drop-lint, r=oli-obk 2025-02-25 13:07:27 +01:00
rustc_lint_defs Introduce new-style attribute parsers for several attributes 2025-02-24 14:31:17 +01:00
rustc_llvm Auto merge of #137271 - nikic:gep-nuw-2, r=scottmcm 2025-02-24 03:06:16 +00:00
rustc_log Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_macros pretty print hir attributes 2025-02-24 14:31:19 +01:00
rustc_metadata Support raw-dylib link kind on ELF 2025-02-26 19:09:51 +01:00
rustc_middle Auto merge of #137354 - FractalFir:intern_with_cap, r=FractalFir 2025-02-26 13:01:45 +00:00
rustc_mir_build Fix some use items that import more than necessary. 2025-02-24 09:30:42 +11:00
rustc_mir_dataflow Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00
rustc_mir_transform Auto merge of #135726 - jdonszelmann:attr-parsing, r=oli-obk 2025-02-24 23:07:24 +00:00
rustc_monomorphize Rollup merge of #137601 - davidtwco:deduplicate-type-has-metadata, r=fmease,bjorn3 2025-02-26 04:15:05 +01:00
rustc_next_trait_solver Rollup merge of #137333 - compiler-errors:edition-2024-fresh, r=Nadrieril 2025-02-22 11:36:43 +01:00
rustc_parse Rollup merge of #137435 - estebank:match-arm-2, r=compiler-errors 2025-02-23 02:44:19 -05:00
rustc_parse_format Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_passes lower attr spans and inline some functions to hopefully mitigate perf regressions 2025-02-24 14:37:58 +01:00
rustc_pattern_analysis Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00
rustc_privacy Introduce new-style attribute parsers for several attributes 2025-02-24 14:31:17 +01:00
rustc_query_impl Introduce new parsing infrastructure and types for parsed attributes 2025-02-24 14:26:06 +01:00
rustc_query_system Introduce new parsing infrastructure and types for parsed attributes 2025-02-24 14:26:06 +01:00
rustc_resolve Rollup merge of #137529 - klensy:unused3, r=lcnr 2025-02-26 04:15:04 +01:00
rustc_sanitizers Introduce new-style attribute parsers for several attributes 2025-02-24 14:31:17 +01:00
rustc_serialize rename sub_ptr 😅 2025-02-23 23:11:00 +07:00
rustc_session Support raw-dylib link kind on ELF 2025-02-26 19:09:51 +01:00
rustc_smir change smir attributes getters to only support tool attributes 2025-02-24 14:31:19 +01:00
rustc_span Support raw-dylib link kind on ELF 2025-02-26 19:09:51 +01:00
rustc_symbol_mangling Introduce new-style attribute parsers for several attributes 2025-02-24 14:31:17 +01:00
rustc_target Support raw-dylib link kind on ELF 2025-02-26 19:09:51 +01:00
rustc_trait_selection Auto merge of #137571 - tgross35:rollup-i1tcnv1, r=tgross35 2025-02-25 05:41:34 +00:00
rustc_traits Rollup merge of #137333 - compiler-errors:edition-2024-fresh, r=Nadrieril 2025-02-22 11:36:43 +01:00
rustc_transmute Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_ty_utils Rollup merge of #137334 - compiler-errors:edition-2024-fresh-2, r=saethlin,traviscross 2025-02-23 02:44:18 -05:00
rustc_type_ir type_ir: remove redundant part of comment 2025-02-24 07:30:59 +00:00
rustc_type_ir_macros Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
stable_mir change smir attributes getters to only support tool attributes 2025-02-24 14:31:19 +01:00