rust/tests/ui/linking
Matthias Krüger b11e9e31dd
Rollup merge of #143446 - usamoi:export-executable-symbols, r=bjorn3,oli-obk
use `--dynamic-list` for exporting executable symbols

closes rust-lang/rust#101610
cc rust-lang/rust#84161

https://sourceware.org/binutils/docs-2.39/ld/VERSION.html:

> --dynamic-list=dynamic-list-file
Specify the name of a dynamic list file to the linker. This is typically used when creating shared libraries to specify a list of global symbols whose references shouldn’t be bound to the definition within the shared library, or creating dynamically linked executables to specify a list of symbols which should be added to the symbol table in the executable. This option is only meaningful on ELF platforms which support shared libraries.

`ld.lld --help`:

>   --dynamic-list=<file>: Similar to --export-dynamic-symbol-list. When creating a shared object, this additionally implies -Bsymbolic but does not set DF_SYMBOLIC

>  --export-dynamic-symbol-list=file: Read a list of dynamic symbol patterns. Apply --export-dynamic-symbol on each pattern

>  --export-dynamic-symbol=glob: (executable) Put matched symbols in the dynamic symbol table. (shared object) References to matched non-local STV_DEFAULT symbols shouldn't be bound to definitions within the shared object. Does not imply -Bsymbolic.

>  --export-dynamic: Put symbols in the dynamic symbol table

Use `--dynamic-list` because it's older than `--export-dynamic-symbol-list` (binutils 2.35)

try-job: dist-i586-gnu-i586-i686-musl
2025-07-10 20:28:46 +02:00
..
cdylib-no-mangle.rs set subsections_via_symbols for ld64 helper sections 2025-04-25 01:41:25 +08:00
crate-type-invalid-flag-error.rs cleaned up some tests 2025-06-08 01:14:05 +05:00
crate-type-invalid-flag-error.stderr cleaned up some tests 2025-06-08 01:14:05 +05:00
executable-no-mangle-strip.rs set subsections_via_symbols for ld64 helper sections 2025-04-25 01:41:25 +08:00
export-executable-symbols.rs use --dynamic-list for exporting executable symbols 2025-07-09 22:40:11 +08:00
link-self-contained-consistency.many.stderr Move link-self-contained-consistency test to a more reasonable location 2025-04-03 15:41:38 +02:00
link-self-contained-consistency.one.stderr Move link-self-contained-consistency test to a more reasonable location 2025-04-03 15:41:38 +02:00
link-self-contained-consistency.rs expand -Clink-self-contained tests 2025-07-08 10:24:10 +00:00
link-self-contained-linker-disallowed.rs expand -Clink-self-contained tests 2025-07-08 10:24:10 +00:00
link-self-contained-linker-disallowed.unstable_positive.stderr expand -Clink-self-contained tests 2025-07-08 10:24:10 +00:00
link-self-contained-linker-disallowed.unstable_target_negative.stderr expand -Clink-self-contained tests 2025-07-08 10:24:10 +00:00
link-self-contained-linker-disallowed.unstable_target_positive.stderr expand -Clink-self-contained tests 2025-07-08 10:24:10 +00:00
link-self-contained-malformed.invalid_modifier.stderr Add some negative test coverage for malformed -Clink-self-contained flags 2025-05-15 16:47:17 +08:00
link-self-contained-malformed.no_value.stderr Add some negative test coverage for malformed -Clink-self-contained flags 2025-05-15 16:47:17 +08:00
link-self-contained-malformed.rs Add some negative test coverage for malformed -Clink-self-contained flags 2025-05-15 16:47:17 +08:00
link-self-contained-malformed.unknown_boolean.stderr Add some negative test coverage for malformed -Clink-self-contained flags 2025-05-15 16:47:17 +08:00
link-self-contained-malformed.unknown_modifier_value.stderr Add some negative test coverage for malformed -Clink-self-contained flags 2025-05-15 16:47:17 +08:00
link-self-contained-malformed.unknown_value.stderr Add some negative test coverage for malformed -Clink-self-contained flags 2025-05-15 16:47:17 +08:00
link-self-contained-unstable.crto.stderr expand -Clink-self-contained tests 2025-07-08 10:24:10 +00:00
link-self-contained-unstable.libc.stderr expand -Clink-self-contained tests 2025-07-08 10:24:10 +00:00
link-self-contained-unstable.mingw.stderr expand -Clink-self-contained tests 2025-07-08 10:24:10 +00:00
link-self-contained-unstable.rs expand -Clink-self-contained tests 2025-07-08 10:24:10 +00:00
link-self-contained-unstable.sanitizers.stderr expand -Clink-self-contained tests 2025-07-08 10:24:10 +00:00
link-self-contained-unstable.unwind.stderr expand -Clink-self-contained tests 2025-07-08 10:24:10 +00:00
linker-features-lld-disallowed.rs expand -Clinker-features tests 2025-07-08 09:30:44 +00:00
linker-features-lld-disallowed.unstable_positive.stderr expand -Clinker-features tests 2025-07-08 09:30:44 +00:00
linker-features-lld-disallowed.unstable_target_negative.stderr expand -Clinker-features tests 2025-07-08 09:30:44 +00:00
linker-features-lld-disallowed.unstable_target_positive.stderr expand -Clinker-features tests 2025-07-08 09:30:44 +00:00
linker-features-malformed.invalid_modifier.stderr expand -Clinker-features tests 2025-07-08 09:30:44 +00:00
linker-features-malformed.invalid_separator.stderr expand -Clinker-features tests 2025-07-08 09:30:44 +00:00
linker-features-malformed.no_value.stderr expand -Clinker-features tests 2025-07-08 09:30:44 +00:00
linker-features-malformed.rs expand -Clinker-features tests 2025-07-08 09:30:44 +00:00
linker-features-malformed.unknown_boolean.stderr expand -Clinker-features tests 2025-07-08 09:30:44 +00:00
linker-features-malformed.unknown_modifier_value.stderr expand -Clinker-features tests 2025-07-08 09:30:44 +00:00
linker-features-malformed.unknown_value.stderr expand -Clinker-features tests 2025-07-08 09:30:44 +00:00
linker-features-unstable-cc.rs expand -Clinker-features tests 2025-07-08 09:30:44 +00:00
linker-features-unstable-cc.stderr expand -Clinker-features tests 2025-07-08 09:30:44 +00:00
no-gc-encapsulation-symbols.rs Add test for garbage collection of encapsulation symbols 2025-03-08 19:03:49 +01:00
weird-export-names.rs linker: Quote symbol names in .def files 2025-05-02 16:25:00 +03:00