File tree Expand file tree Collapse file tree 7 files changed +0
-40
lines changed Expand file tree Collapse file tree 7 files changed +0
-40
lines changed Original file line number Diff line number Diff line change @@ -257,9 +257,6 @@ impl FileDesc {
257257 }
258258
259259 #[ cfg( all( target_os = "android" , target_pointer_width = "32" ) ) ]
260- // FIXME(#115199): Rust currently omits weak function definitions
261- // and its metadata from LLVM IR.
262- #[ no_sanitize( cfi) ]
263260 pub fn read_vectored_at ( & self , bufs : & mut [ IoSliceMut < ' _ > ] , offset : u64 ) -> io:: Result < usize > {
264261 weak ! (
265262 fn preadv64(
Original file line number Diff line number Diff line change @@ -1463,20 +1463,6 @@ impl File {
14631463 Ok ( ( ) )
14641464 }
14651465
1466- // FIXME(#115199): Rust currently omits weak function definitions
1467- // and its metadata from LLVM IR.
1468- #[ cfg_attr(
1469- any(
1470- target_os = "android" ,
1471- all(
1472- target_os = "linux" ,
1473- target_env = "gnu" ,
1474- target_pointer_width = "32" ,
1475- not( target_arch = "riscv32" )
1476- )
1477- ) ,
1478- no_sanitize( cfi)
1479- ) ]
14801466 pub fn set_times ( & self , times : FileTimes ) -> io:: Result < ( ) > {
14811467 #[ cfg( not( any(
14821468 target_os = "redox" ,
Original file line number Diff line number Diff line change @@ -189,9 +189,6 @@ impl Thread {
189189 }
190190
191191 #[ cfg( any( target_os = "solaris" , target_os = "illumos" , target_os = "nto" ) ) ]
192- // FIXME(#115199): Rust currently omits weak function definitions
193- // and its metadata from LLVM IR.
194- #[ no_sanitize( cfi) ]
195192 pub fn set_name ( name : & CStr ) {
196193 weak ! (
197194 fn pthread_setname_np(
Original file line number Diff line number Diff line change @@ -96,17 +96,6 @@ impl Timespec {
9696 }
9797 }
9898
99- // FIXME(#115199): Rust currently omits weak function definitions
100- // and its metadata from LLVM IR.
101- #[ cfg_attr(
102- all(
103- target_os = "linux" ,
104- target_env = "gnu" ,
105- target_pointer_width = "32" ,
106- not( target_arch = "riscv32" )
107- ) ,
108- no_sanitize( cfi)
109- ) ]
11099 pub fn now ( clock : libc:: clockid_t ) -> Timespec {
111100 use crate :: mem:: MaybeUninit ;
112101 use crate :: sys:: cvt;
Original file line number Diff line number Diff line change @@ -155,9 +155,6 @@ unsafe fn fetch(name: &str) -> *mut libc::c_void {
155155#[ cfg( not( any( target_os = "linux" , target_os = "android" ) ) ) ]
156156pub ( crate ) macro syscall {
157157 ( fn $name: ident( $( $param: ident : $t: ty) , * $( , ) ?) -> $ret: ty; ) => (
158- // FIXME(#115199): Rust currently omits weak function definitions
159- // and its metadata from LLVM IR.
160- #[ no_sanitize( cfi) ]
161158 unsafe fn $name( $( $param: $t) , * ) -> $ret {
162159 weak ! ( fn $name( $( $param: $t) , * ) -> $ret; ) ;
163160
Original file line number Diff line number Diff line change @@ -434,9 +434,6 @@ impl Command {
434434 target_os = "nto" ,
435435 target_vendor = "apple" ,
436436 ) ) ]
437- // FIXME(#115199): Rust currently omits weak function definitions
438- // and its metadata from LLVM IR.
439- #[ cfg_attr( target_os = "linux" , no_sanitize( cfi) ) ]
440437 fn posix_spawn (
441438 & mut self ,
442439 stdio : & ChildPipes ,
Original file line number Diff line number Diff line change 1212
1313use crate :: mem:: transmute;
1414
15- // FIXME: The Rust compiler currently omits weakly function definitions (i.e.,
16- // __cxa_thread_atexit_impl) and its metadata from LLVM IR.
17- #[ no_sanitize( cfi, kcfi) ]
1815pub unsafe fn register ( t : * mut u8 , dtor : unsafe extern "C" fn ( * mut u8 ) ) {
1916 /// This is necessary because the __cxa_thread_atexit_impl implementation
2017 /// std links to by default may be a C or C++ implementation that was not
You can’t perform that action at this time.
0 commit comments