rust/compiler/rustc_target/src/spec
Benjamin A. Bjørnseth bb9dee95ed add rustc option for using LLVM stack smash protection
LLVM has built-in heuristics for adding stack canaries to functions. These
heuristics can be selected with LLVM function attributes. This patch adds a
rustc option `-Z stack-protector={none,basic,strong,all}` which controls the use
of these attributes. This gives rustc the same stack smash protection support as
clang offers through options `-fno-stack-protector`, `-fstack-protector`,
`-fstack-protector-strong`, and `-fstack-protector-all`. The protection this can
offer is demonstrated in test/ui/abi/stack-protector.rs. This fills a gap in the
current list of rustc exploit
mitigations (https://doc.rust-lang.org/rustc/exploit-mitigations.html),
originally discussed in #15179.

Stack smash protection adds runtime overhead and is therefore still off by
default, but now users have the option to trade performance for security as they
see fit. An example use case is adding Rust code in an existing C/C++ code base
compiled with stack smash protection. Without the ability to add stack smash
protection to the Rust code, the code base artifacts could be exploitable in
ways not possible if the code base remained pure C/C++.

Stack smash protection support is present in LLVM for almost all the current
tier 1/tier 2 targets: see
test/assembly/stack-protector/stack-protector-target-support.rs. The one
exception is nvptx64-nvidia-cuda. This patch follows clang's example, and adds a
warning message printed if stack smash protection is used with this target (see
test/ui/stack-protector/warn-stack-protector-unsupported.rs). Support for tier 3
targets has not been checked.

Since the heuristics are applied at the LLVM level, the heuristics are expected
to add stack smash protection to a fraction of functions comparable to C/C++.
Some experiments demonstrating how Rust code is affected by the different
heuristics can be found in
test/assembly/stack-protector/stack-protector-heuristics-effect.rs. There is
potential for better heuristics using Rust-specific safety information. For
example it might be reasonable to skip stack smash protection in functions which
transitively only use safe Rust code, or which uses only a subset of functions
the user declares safe (such as anything under `std.*`). Such alternative
heuristics could be added at a later point.

LLVM also offers a "safestack" sanitizer as an alternative way to guard against
stack smashing (see #26612). This could possibly also be included as a
stack-protection heuristic. An alternative is to add it as a sanitizer (#39699).
This is what clang does: safestack is exposed with option
`-fsanitize=safe-stack`.

The options are only supported by the LLVM backend, but as with other codegen
options it is visible in the main codegen option help menu. The heuristic names
"basic", "strong", and "all" are hopefully sufficiently generic to be usable in
other backends as well.

Reviewed-by: Nikita Popov <nikic@php.net>

Extra commits during review:

- [address-review] make the stack-protector option unstable

- [address-review] reduce detail level of stack-protector option help text

- [address-review] correct grammar in comment

- [address-review] use compiler flag to avoid merging functions in test

- [address-review] specify min LLVM version in fortanix stack-protector test

  Only for Fortanix test, since this target specifically requests the
  `--x86-experimental-lvi-inline-asm-hardening` flag.

- [address-review] specify required LLVM components in stack-protector tests

- move stack protector option enum closer to other similar option enums

- rustc_interface/tests: sort debug option list in tracking hash test

- add an explicit `none` stack-protector option

Revert "set LLVM requirements for all stack protector support test revisions"

This reverts commit a49b74f92a4e7d701d6f6cf63d207a8aff2e0f68.
2021-11-22 20:06:22 +01:00
..
abi mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
tests Emit warnings for unused fields in custom targets. 2021-06-17 21:48:02 +02:00
aarch64_apple_darwin.rs Use apple-a14 as target CPU for aarch64-apple-darwin. 2021-11-01 17:03:07 +01:00
aarch64_apple_ios_macabi.rs Replace per-target ABI denylist with an allowlist 2021-07-06 13:12:15 +03:00
aarch64_apple_ios_sim.rs Replace per-target ABI denylist with an allowlist 2021-07-06 13:12:15 +03:00
aarch64_apple_ios.rs Generate an iOS LLVM target with a specific version 2021-08-16 17:31:37 +10:00
aarch64_apple_tvos.rs Replace per-target ABI denylist with an allowlist 2021-07-06 13:12:15 +03:00
aarch64_be_unknown_linux_gnu_ilp32.rs Move outline-atomics to aarch64-linux target definitions 2021-11-05 10:28:12 -07:00
aarch64_be_unknown_linux_gnu.rs Move outline-atomics to aarch64-linux target definitions 2021-11-05 10:28:12 -07:00
aarch64_fuchsia.rs Add LLVM CFI support to the Rust compiler 2021-10-25 16:23:01 -07:00
aarch64_kmc_solid_asp3.rs Add SOLID targets 2021-09-28 11:31:47 +09:00
aarch64_linux_android.rs Add LLVM CFI support to the Rust compiler 2021-10-25 16:23:01 -07:00
aarch64_pc_windows_msvc.rs rustc_target: Move linker_flavor from Target to TargetOptions 2020-11-07 14:27:48 +03:00
aarch64_unknown_freebsd.rs Add LLVM CFI support to the Rust compiler 2021-10-25 16:23:01 -07:00
aarch64_unknown_hermit.rs rustc_target: Move linker_flavor from Target to TargetOptions 2020-11-07 14:27:48 +03:00
aarch64_unknown_linux_gnu_ilp32.rs Move outline-atomics to aarch64-linux target definitions 2021-11-05 10:28:12 -07:00
aarch64_unknown_linux_gnu.rs Move outline-atomics to aarch64-linux target definitions 2021-11-05 10:28:12 -07:00
aarch64_unknown_linux_musl.rs Move outline-atomics to aarch64-linux target definitions 2021-11-05 10:28:12 -07:00
aarch64_unknown_netbsd.rs Replace per-target ABI denylist with an allowlist 2021-07-06 13:12:15 +03:00
aarch64_unknown_none_softfloat.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
aarch64_unknown_none.rs Fix issue where PIC was added to the wrong target. 2021-10-14 12:10:20 -06:00
aarch64_unknown_openbsd.rs Replace per-target ABI denylist with an allowlist 2021-07-06 13:12:15 +03:00
aarch64_unknown_redox.rs rustc_target: Move linker_flavor from Target to TargetOptions 2020-11-07 14:27:48 +03:00
aarch64_unknown_uefi.rs Add the aarch64-unknown-uefi target 2021-08-09 16:49:04 +10:00
aarch64_uwp_windows_msvc.rs rustc_target: Move linker_flavor from Target to TargetOptions 2020-11-07 14:27:48 +03:00
aarch64_wrs_vxworks.rs Replace per-target ABI denylist with an allowlist 2021-07-06 13:12:15 +03:00
abi.rs Lint Abi in ast validation. 2021-08-31 20:30:17 +02:00
android_base.rs Android is not GNU 2021-11-12 09:09:08 -08:00
apple_base.rs Auto merge of #88250 - rusticstuff:macos-lld, r=nagisa 2021-08-29 04:51:14 +00:00
apple_sdk_base.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
arm_linux_androideabi.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
arm_unknown_linux_gnueabi.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
arm_unknown_linux_gnueabihf.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
arm_unknown_linux_musleabi.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
arm_unknown_linux_musleabihf.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
armebv7r_none_eabi.rs Apply c_enum_min_bits = 8 to (arm|thumb)-none- platforms 2021-08-12 09:44:16 -07:00
armebv7r_none_eabihf.rs Apply c_enum_min_bits = 8 to (arm|thumb)-none- platforms 2021-08-12 09:44:16 -07:00
armv4t_unknown_linux_gnueabi.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
armv5te_unknown_linux_gnueabi.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
armv5te_unknown_linux_musleabi.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
armv5te_unknown_linux_uclibceabi.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
armv6_unknown_freebsd.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
armv6_unknown_netbsd_eabihf.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
armv6k_nintendo_3ds.rs ARMv6K Horizon OS panic change 2021-11-02 08:44:22 +01:00
armv7_apple_ios.rs allow specifying an ios version for the llvm target 2021-08-24 08:23:05 +02:00
armv7_linux_androideabi.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
armv7_unknown_freebsd.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
armv7_unknown_linux_gnueabi.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
armv7_unknown_linux_gnueabihf.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
armv7_unknown_linux_musleabi.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
armv7_unknown_linux_musleabihf.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
armv7_unknown_linux_uclibceabihf.rs add platform support details file for armv7-unknown-linux-uclibc 2021-10-06 14:33:13 +00:00
armv7_unknown_netbsd_eabihf.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
armv7_wrs_vxworks_eabihf.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
armv7a_kmc_solid_asp3_eabi.rs Add SOLID targets 2021-09-28 11:31:47 +09:00
armv7a_kmc_solid_asp3_eabihf.rs Add SOLID targets 2021-09-28 11:31:47 +09:00
armv7a_none_eabi.rs Apply c_enum_min_bits = 8 to (arm|thumb)-none- platforms 2021-08-12 09:44:16 -07:00
armv7a_none_eabihf.rs Apply c_enum_min_bits = 8 to (arm|thumb)-none- platforms 2021-08-12 09:44:16 -07:00
armv7r_none_eabi.rs Apply c_enum_min_bits = 8 to (arm|thumb)-none- platforms 2021-08-12 09:44:16 -07:00
armv7r_none_eabihf.rs Apply c_enum_min_bits = 8 to (arm|thumb)-none- platforms 2021-08-12 09:44:16 -07:00
armv7s_apple_ios.rs Replace per-target ABI denylist with an allowlist 2021-07-06 13:12:15 +03:00
asmjs_unknown_emscripten.rs Collapse all uses of target.options.foo into target.foo 2020-11-08 17:29:13 +03:00
avr_gnu_base.rs Remove linker_is_gnu: true cases as that is now the default. 2021-05-20 23:36:04 -07:00
avr_unknown_gnu_atmega328.rs rustc_target: Refactor away TargetResult 2020-10-05 19:28:19 +03:00
bpf_base.rs Replace per-target ABI denylist with an allowlist 2021-07-06 13:12:15 +03:00
bpfeb_unknown_none.rs Add support for BPF inline assembly 2021-05-23 18:03:27 +10:00
bpfel_unknown_none.rs Add support for BPF inline assembly 2021-05-23 18:03:27 +10:00
crt_objects.rs WASI: Switch to crt1-command.o to enable support for new-style commands 2021-03-08 17:49:34 -08:00
dragonfly_base.rs Remove linker_is_gnu: true cases as that is now the default. 2021-05-20 23:36:04 -07:00
freebsd_base.rs freebsd remove compiler workaround. 2021-07-25 17:38:44 +01:00
fuchsia_base.rs Remove linker_is_gnu: true cases as that is now the default. 2021-05-20 23:36:04 -07:00
haiku_base.rs Remove linker_is_gnu: true cases as that is now the default. 2021-05-20 23:36:04 -07:00
hermit_base.rs Remove linker_is_gnu: true cases as that is now the default. 2021-05-20 23:36:04 -07:00
hermit_kernel_base.rs hermitkernel-target: Set OS to "none" 2021-10-29 18:07:36 +02:00
hexagon_unknown_linux_musl.rs Add c_enum_min_bits to target spec 2021-08-12 09:44:16 -07:00
i386_apple_ios.rs allow specifying an ios version for the llvm target 2021-08-24 08:23:05 +02:00
i386_unknown_linux_gnu.rs Added support for i386-unknown-linux-gnu and i486-unknown-linux-gnu 2021-01-05 12:05:36 +01:00
i486_unknown_linux_gnu.rs Added support for i386-unknown-linux-gnu and i486-unknown-linux-gnu 2021-01-05 12:05:36 +01:00
i586_pc_windows_msvc.rs Collapse all uses of target.options.foo into target.foo 2020-11-08 17:29:13 +03:00
i586_unknown_linux_gnu.rs Collapse all uses of target.options.foo into target.foo 2020-11-08 17:29:13 +03:00
i586_unknown_linux_musl.rs Collapse all uses of target.options.foo into target.foo 2020-11-08 17:29:13 +03:00
i686_apple_darwin.rs Add support for leaf fn frame pointer elimination 2021-06-30 19:45:17 +03:00
i686_linux_android.rs Use HTTPS links where possible 2021-06-23 16:26:46 -04:00
i686_pc_windows_gnu.rs Add support for leaf fn frame pointer elimination 2021-06-30 19:45:17 +03:00
i686_pc_windows_msvc.rs rustc_target: Avoid unwraps when adding linker flags 2021-03-28 02:28:48 +03:00
i686_unknown_freebsd.rs Change to probe-stack=call (instead of inline-or-call) everywhere again, for now. 2021-04-29 15:13:21 -04:00
i686_unknown_haiku.rs Change to probe-stack=call (instead of inline-or-call) everywhere again, for now. 2021-04-29 15:13:21 -04:00
i686_unknown_linux_gnu.rs Change to probe-stack=call (instead of inline-or-call) everywhere again, for now. 2021-04-29 15:13:21 -04:00
i686_unknown_linux_musl.rs Add support for leaf fn frame pointer elimination 2021-06-30 19:45:17 +03:00
i686_unknown_netbsd.rs Change to probe-stack=call (instead of inline-or-call) everywhere again, for now. 2021-04-29 15:13:21 -04:00
i686_unknown_openbsd.rs Change to probe-stack=call (instead of inline-or-call) everywhere again, for now. 2021-04-29 15:13:21 -04:00
i686_unknown_uefi.rs rustc_target: Move linker_flavor from Target to TargetOptions 2020-11-07 14:27:48 +03:00
i686_uwp_windows_gnu.rs Add support for leaf fn frame pointer elimination 2021-06-30 19:45:17 +03:00
i686_uwp_windows_msvc.rs rustc_target: Move linker_flavor from Target to TargetOptions 2020-11-07 14:27:48 +03:00
i686_wrs_vxworks.rs Change to probe-stack=call (instead of inline-or-call) everywhere again, for now. 2021-04-29 15:13:21 -04:00
illumos_base.rs Add support for leaf fn frame pointer elimination 2021-06-30 19:45:17 +03:00
l4re_base.rs Swap TargetOptions::linker_is_gnu default from false to true and update targets as appropriate. 2021-05-20 16:47:08 -07:00
linux_base.rs Remove linker_is_gnu: true cases as that is now the default. 2021-05-20 23:36:04 -07:00
linux_gnu_base.rs rustc_target: Move target env "gnu" from linux_base to linux_gnu_base 2020-11-11 11:38:40 +03:00
linux_kernel_base.rs Add support for leaf fn frame pointer elimination 2021-06-30 19:45:17 +03:00
linux_musl_base.rs rustc_target: Rename some target options to avoid tautology 2020-11-08 17:29:13 +03:00
linux_uclibc_base.rs rustc_target: Rename some target options to avoid tautology 2020-11-08 17:29:13 +03:00
m68k_unknown_linux_gnu.rs compiler/rustc_target: Add support for m68k-linux-gnu 2021-09-17 15:07:12 +00:00
mips64_unknown_linux_gnuabi64.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
mips64_unknown_linux_muslabi64.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
mips64el_unknown_linux_gnuabi64.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
mips64el_unknown_linux_muslabi64.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
mips_unknown_linux_gnu.rs Change related spec files to use the new enum 2021-01-06 13:34:20 +00:00
mips_unknown_linux_musl.rs Change related spec files to use the new enum 2021-01-06 13:34:20 +00:00
mips_unknown_linux_uclibc.rs Change related spec files to use the new enum 2021-01-06 13:34:20 +00:00
mipsel_sony_psp_linker_script.ld mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
mipsel_sony_psp.rs Remove linker_is_gnu: true cases as that is now the default. 2021-05-20 23:36:04 -07:00
mipsel_unknown_linux_gnu.rs rustc_target: Move target env "gnu" from linux_base to linux_gnu_base 2020-11-11 11:38:40 +03:00
mipsel_unknown_linux_musl.rs rustc_target: Rename some target options to avoid tautology 2020-11-08 17:29:13 +03:00
mipsel_unknown_linux_uclibc.rs rustc_target: Rename some target options to avoid tautology 2020-11-08 17:29:13 +03:00
mipsel_unknown_none.rs Replace per-target ABI denylist with an allowlist 2021-07-06 13:12:15 +03:00
mipsisa32r6_unknown_linux_gnu.rs Change related spec files to use the new enum 2021-01-06 13:34:20 +00:00
mipsisa32r6el_unknown_linux_gnu.rs rustc_target: Move target env "gnu" from linux_base to linux_gnu_base 2020-11-11 11:38:40 +03:00
mipsisa64r6_unknown_linux_gnuabi64.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
mipsisa64r6el_unknown_linux_gnuabi64.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
mod.rs add rustc option for using LLVM stack smash protection 2021-11-22 20:06:22 +01:00
msp430_none_elf.rs msp430 linker does not accept -znoexecstack. Set linker_is_gnu to false as workaround for now. 2021-06-04 20:37:53 -04:00
msvc_base.rs Swap TargetOptions::linker_is_gnu default from false to true and update targets as appropriate. 2021-05-20 16:47:08 -07:00
netbsd_base.rs Remove linker_is_gnu: true cases as that is now the default. 2021-05-20 23:36:04 -07:00
nvptx64_nvidia_cuda.rs add rustc option for using LLVM stack smash protection 2021-11-22 20:06:22 +01:00
openbsd_base.rs Add support for leaf fn frame pointer elimination 2021-06-30 19:45:17 +03:00
powerpc64_unknown_freebsd.rs rustc_target: Avoid unwraps when adding linker flags 2021-03-28 02:28:48 +03:00
powerpc64_unknown_linux_gnu.rs Update powerpc64 data layout 2021-08-16 18:28:18 +02:00
powerpc64_unknown_linux_musl.rs Update powerpc64 data layout 2021-08-16 18:28:18 +02:00
powerpc64_wrs_vxworks.rs Update powerpc64 data layout 2021-08-16 18:28:18 +02:00
powerpc64le_unknown_freebsd.rs Replace get_mut(& with entry( for powerpc64le-unknown-freebsd 2021-04-14 08:54:11 +00:00
powerpc64le_unknown_linux_gnu.rs Update powerpc64 data layout 2021-08-16 18:28:18 +02:00
powerpc64le_unknown_linux_musl.rs Update powerpc64 data layout 2021-08-16 18:28:18 +02:00
powerpc_unknown_freebsd.rs Add support for powerpc-unknown-freebsd 2021-07-22 17:29:33 +02:00
powerpc_unknown_linux_gnu.rs rustc_target: Avoid unwraps when adding linker flags 2021-03-28 02:28:48 +03:00
powerpc_unknown_linux_gnuspe.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
powerpc_unknown_linux_musl.rs rustc_target: Avoid unwraps when adding linker flags 2021-03-28 02:28:48 +03:00
powerpc_unknown_netbsd.rs rustc_target: Avoid unwraps when adding linker flags 2021-03-28 02:28:48 +03:00
powerpc_unknown_openbsd.rs Add powerpc-unknown-openbsd target 2021-03-04 22:43:34 +01:00
powerpc_wrs_vxworks_spe.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
powerpc_wrs_vxworks.rs rustc_target: Avoid unwraps when adding linker flags 2021-03-28 02:28:48 +03:00
redox_base.rs Remove linker_is_gnu: true cases as that is now the default. 2021-05-20 23:36:04 -07:00
riscv32gc_unknown_linux_gnu.rs Replace per-target ABI denylist with an allowlist 2021-07-06 13:12:15 +03:00
riscv32gc_unknown_linux_musl.rs Replace per-target ABI denylist with an allowlist 2021-07-06 13:12:15 +03:00
riscv32i_unknown_none_elf.rs Replace per-target ABI denylist with an allowlist 2021-07-06 13:12:15 +03:00
riscv32imac_unknown_none_elf.rs Replace per-target ABI denylist with an allowlist 2021-07-06 13:12:15 +03:00
riscv32imc_esp_espidf.rs STD support for the ESP-IDF framework 2021-08-10 12:09:00 +03:00
riscv32imc_unknown_none_elf.rs Replace per-target ABI denylist with an allowlist 2021-07-06 13:12:15 +03:00
riscv64gc_unknown_linux_gnu.rs Replace per-target ABI denylist with an allowlist 2021-07-06 13:12:15 +03:00
riscv64gc_unknown_linux_musl.rs Replace per-target ABI denylist with an allowlist 2021-07-06 13:12:15 +03:00
riscv64gc_unknown_none_elf.rs Replace per-target ABI denylist with an allowlist 2021-07-06 13:12:15 +03:00
riscv64imac_unknown_none_elf.rs Replace per-target ABI denylist with an allowlist 2021-07-06 13:12:15 +03:00
s390x_unknown_linux_gnu.rs Change related spec files to use the new enum 2021-01-06 13:34:20 +00:00
s390x_unknown_linux_musl.rs add s390x-unknown-linux-musl target 2021-02-19 03:14:28 +00:00
solaris_base.rs Swap TargetOptions::linker_is_gnu default from false to true and update targets as appropriate. 2021-05-20 16:47:08 -07:00
solid_base.rs Add SOLID targets 2021-09-28 11:31:47 +09:00
sparc64_unknown_linux_gnu.rs Change related spec files to use the new enum 2021-01-06 13:34:20 +00:00
sparc64_unknown_netbsd.rs rustc_target: Avoid unwraps when adding linker flags 2021-03-28 02:28:48 +03:00
sparc64_unknown_openbsd.rs rustc_target: Avoid unwraps when adding linker flags 2021-03-28 02:28:48 +03:00
sparc_unknown_linux_gnu.rs rustc_target: Avoid unwraps when adding linker flags 2021-03-28 02:28:48 +03:00
sparcv9_sun_solaris.rs Change default Solaris x86 target to x86_64-pc-solaris 2021-03-01 15:05:31 +01:00
thumb_base.rs Apply c_enum_min_bits = 8 to (arm|thumb)-none- platforms 2021-08-12 09:44:16 -07:00
thumbv4t_none_eabi.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
thumbv6m_none_eabi.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
thumbv7a_pc_windows_msvc.rs Replace per-target ABI denylist with an allowlist 2021-07-06 13:12:15 +03:00
thumbv7a_uwp_windows_msvc.rs Replace per-target ABI denylist with an allowlist 2021-07-06 13:12:15 +03:00
thumbv7em_none_eabi.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
thumbv7em_none_eabihf.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
thumbv7m_none_eabi.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
thumbv7neon_linux_androideabi.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
thumbv7neon_unknown_linux_gnueabihf.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
thumbv7neon_unknown_linux_musleabihf.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
thumbv8m_base_none_eabi.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
thumbv8m_main_none_eabi.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
thumbv8m_main_none_eabihf.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
uefi_msvc_base.rs rustc_target: Avoid unwraps when adding linker flags 2021-03-28 02:28:48 +03:00
vxworks_base.rs Remove linker_is_gnu: true cases as that is now the default. 2021-05-20 23:36:04 -07:00
wasm32_unknown_emscripten.rs Add emscripten to the "wasm" family of targets 2021-11-16 13:10:35 -08:00
wasm32_unknown_unknown.rs Update wasm data layout 2021-08-16 18:28:18 +02:00
wasm32_wasi.rs Update wasm data layout 2021-08-16 18:28:18 +02:00
wasm64_unknown_unknown.rs Enable WebAssembly features by default on wasm64 2021-11-10 08:35:42 -08:00
wasm_base.rs Disable .debug_aranges for all wasm targets 2021-11-10 10:47:00 -08:00
windows_gnu_base.rs Remove linker_is_gnu: true cases as that is now the default. 2021-05-20 23:36:04 -07:00
windows_msvc_base.rs Allow setting target_family to multiple values 2021-04-11 01:18:38 +03:00
windows_uwp_gnu_base.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
windows_uwp_msvc_base.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
x86_64_apple_darwin.rs Add LLVM CFI support to the Rust compiler 2021-10-25 16:23:01 -07:00
x86_64_apple_ios_macabi.rs Change to probe-stack=call (instead of inline-or-call) everywhere again, for now. 2021-04-29 15:13:21 -04:00
x86_64_apple_ios.rs allow specifying an ios version for the llvm target 2021-08-24 08:23:05 +02:00
x86_64_apple_tvos.rs Change to probe-stack=call (instead of inline-or-call) everywhere again, for now. 2021-04-29 15:13:21 -04:00
x86_64_fortanix_unknown_sgx.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
x86_64_fuchsia.rs Add LLVM CFI support to the Rust compiler 2021-10-25 16:23:01 -07:00
x86_64_linux_android.rs Change to probe-stack=call (instead of inline-or-call) everywhere again, for now. 2021-04-29 15:13:21 -04:00
x86_64_pc_solaris.rs Add LLVM CFI support to the Rust compiler 2021-10-25 16:23:01 -07:00
x86_64_pc_windows_gnu.rs rustc_target: Avoid unwraps when adding linker flags 2021-03-28 02:28:48 +03:00
x86_64_pc_windows_msvc.rs rustc_target: Move linker_flavor from Target to TargetOptions 2020-11-07 14:27:48 +03:00
x86_64_sun_solaris.rs Change to probe-stack=call (instead of inline-or-call) everywhere again, for now. 2021-04-29 15:13:21 -04:00
x86_64_unknown_dragonfly.rs Change to probe-stack=call (instead of inline-or-call) everywhere again, for now. 2021-04-29 15:13:21 -04:00
x86_64_unknown_freebsd.rs Add LLVM CFI support to the Rust compiler 2021-10-25 16:23:01 -07:00
x86_64_unknown_haiku.rs Change to probe-stack=call (instead of inline-or-call) everywhere again, for now. 2021-04-29 15:13:21 -04:00
x86_64_unknown_hermit.rs Change to probe-stack=call (instead of inline-or-call) everywhere again, for now. 2021-04-29 15:13:21 -04:00
x86_64_unknown_illumos.rs Add LLVM CFI support to the Rust compiler 2021-10-25 16:23:01 -07:00
x86_64_unknown_l4re_uclibc.rs rustc_target: Move linker_flavor from Target to TargetOptions 2020-11-07 14:27:48 +03:00
x86_64_unknown_linux_gnu.rs Add LLVM CFI support to the Rust compiler 2021-10-25 16:23:01 -07:00
x86_64_unknown_linux_gnux32.rs Update targets to use target_abi 2021-07-07 08:52:35 -07:00
x86_64_unknown_linux_musl.rs Add LLVM CFI support to the Rust compiler 2021-10-25 16:23:01 -07:00
x86_64_unknown_netbsd.rs Add LLVM CFI support to the Rust compiler 2021-10-25 16:23:01 -07:00
x86_64_unknown_none_hermitkernel.rs rename LLVM target for RustyHermit 2021-05-07 10:09:11 +02:00
x86_64_unknown_none_linuxkernel.rs rustc_target: Avoid unwraps when adding linker flags 2021-03-28 02:28:48 +03:00
x86_64_unknown_none.rs Fix issue where PIC was added to the wrong target. 2021-10-14 12:10:20 -06:00
x86_64_unknown_openbsd.rs Change to probe-stack=call (instead of inline-or-call) everywhere again, for now. 2021-04-29 15:13:21 -04:00
x86_64_unknown_redox.rs Change to probe-stack=call (instead of inline-or-call) everywhere again, for now. 2021-04-29 15:13:21 -04:00
x86_64_unknown_uefi.rs Use small code model for UEFI targets 2021-07-17 14:08:40 +10:00
x86_64_uwp_windows_gnu.rs rustc_target: Avoid unwraps when adding linker flags 2021-03-28 02:28:48 +03:00
x86_64_uwp_windows_msvc.rs rustc_target: Move linker_flavor from Target to TargetOptions 2020-11-07 14:27:48 +03:00
x86_64_wrs_vxworks.rs Change to probe-stack=call (instead of inline-or-call) everywhere again, for now. 2021-04-29 15:13:21 -04:00