Skip to content

Commit

Permalink
Future possibilities: Expand to suggest #[export] annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaulingMonkey committed Dec 31, 2019
1 parent 90126c7 commit 2f636a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions text/0000-export-executable-symbols.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ Most people don't really notice it, for good or for ill.
# Future possibilities
[future-possibilities]: #future-possibilities

We could introduce a new source annotation, `#[export]`. For backwards
compatibility with current behavior, `#[no_mangle]` symbols could be exported
by default - and possibly disabled with `#[export(false)]`. This would
reduce the need to hide this change to compiler/linker behavior behind a
compiler flag or crate annotation.

Maybe other options to control what symbols get exported? Although I'd fear
turning rustc into yet another linker script implementation, so maybe not.

Expand Down

0 comments on commit 2f636a3

Please sign in to comment.