about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-10-28 17:47:36 +0000
committerbors <bors@rust-lang.org>2020-10-28 17:47:36 +0000
commit3dddf6ac1e194deb3d927064e7c6d50bc9325dd0 (patch)
treec556b1e3d4e07137fba7ae09ddcd19e4e25be060 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent717eb6ccea0f9e0079eab82c047bbc1ebde725c2 (diff)
parent056942215cf8dc39686fa80e42b4e73657d4fed5 (diff)
downloadrust-3dddf6ac1e194deb3d927064e7c6d50bc9325dd0.tar.gz
rust-3dddf6ac1e194deb3d927064e7c6d50bc9325dd0.zip
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions