rust/compiler/rustc_session/src
bors 3dddf6ac1e Auto merge of #78414 - nox:function-sections, r=nagisa,bjorn3
Implement -Z function-sections=yes|no

This lets rustc users tweak whether all functions should be put in their own TEXT section, using whatever default value the target defines if the flag is missing.

I'm having fun experimenting with musl libc and trying to implement the start symbol in Rust, that means avoiding code that requires relocations, and AFAIK putting everything in its own section makes the toolchain generate `GOTPCREL` relocations for symbols that could use plain old PC-relative addressing (at least on `x86_64`) if they were all in the same section.
2020-10-28 17:47:36 +00:00
..
lint Added suggestion to function_item_references lint and fixed warning message 2020-10-27 11:04:04 -04:00
cgu_reuse_tracker.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
code_stats.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
config.rs Remove rustc_session::config::Config 2020-10-15 12:02:24 +02:00
filesearch.rs Remove unused #[allow(...)] statements from compiler/ 2020-09-26 01:25:55 +02:00
lib.rs datastructures: replace once_cell crate with an impl from std 2020-08-30 20:06:14 +01:00
lint.rs Support ignore for lint examples. 2020-09-13 08:48:03 -07:00
options.rs Implement -Z function-sections=yes|no 2020-10-26 23:26:43 +01:00
output.rs Replace target.target with target and target.ptr_width with target.pointer_width 2020-10-15 12:02:24 +02:00
parse.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
search_paths.rs use strip_prefix over starts_with and manual slicing based on pattern length (clippy::manual_strip) 2020-09-17 10:13:16 +02:00
session.rs Remove rustc_session::config::Config 2020-10-15 12:02:24 +02:00
utils.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00