rust/compiler/rustc_interface
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
..
src Auto merge of #78414 - nox:function-sections, r=nagisa,bjorn3 2020-10-28 17:47:36 +00:00
Cargo.toml interface: use OnceCell from standard library 2020-09-01 22:06:39 +01:00