Rollup merge of #120188 - devnexen:update_bsd_compiler_base_specs, r=wesleywiser

compiler: update freebsd and netbsd base specs.

both support thread local.
This commit is contained in:
León Orell Valerian Liehr 2024-01-23 21:19:53 +01:00 committed by GitHub
commit 1e5ec4d82a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 1 deletions

View File

@ -8,6 +8,7 @@ pub fn opts() -> TargetOptions {
has_rpath: true, has_rpath: true,
position_independent_executables: true, position_independent_executables: true,
relro_level: RelroLevel::Full, relro_level: RelroLevel::Full,
has_thread_local: true,
default_dwarf_version: 2, default_dwarf_version: 2,
..Default::default() ..Default::default()
} }

View File

@ -9,6 +9,7 @@ pub fn opts() -> TargetOptions {
crt_static_respected: true, crt_static_respected: true,
position_independent_executables: true, position_independent_executables: true,
relro_level: RelroLevel::Full, relro_level: RelroLevel::Full,
has_thread_local: true,
abi_return_struct_as_int: true, abi_return_struct_as_int: true,
default_dwarf_version: 2, default_dwarf_version: 2,
..Default::default() ..Default::default()

View File

@ -9,6 +9,7 @@ pub fn opts() -> TargetOptions {
has_rpath: true, has_rpath: true,
position_independent_executables: true, position_independent_executables: true,
relro_level: RelroLevel::Full, relro_level: RelroLevel::Full,
has_thread_local: true,
use_ctors_section: true, use_ctors_section: true,
default_dwarf_version: 2, default_dwarf_version: 2,
..Default::default() ..Default::default()

View File

@ -17,7 +17,10 @@
target_os = "android", target_os = "android",
target_os = "fuchsia", target_os = "fuchsia",
target_os = "redox", target_os = "redox",
target_os = "hurd" target_os = "hurd",
target_os = "freebsd",
target_os = "netbsd",
target_os = "dragonfly"
))] ))]
// FIXME: The Rust compiler currently omits weakly function definitions (i.e., // FIXME: The Rust compiler currently omits weakly function definitions (i.e.,
// __cxa_thread_atexit_impl) and its metadata from LLVM IR. // __cxa_thread_atexit_impl) and its metadata from LLVM IR.