]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/syscall/mksyscall.pl
[dev.regabi] all: merge master (c9fb4eb) into dev.regabi
[gostls13.git] / src / syscall / mksyscall.pl
index 7e2cedfb6c15b3e493d7cb9017ca8083c1d33c67..26c93ffe5b5ab290995651539f39e3dd69fb457e 100755 (executable)
@@ -343,9 +343,6 @@ while(<>) {
                        $trampolines{$funcname} = 1;
                        # The assembly trampoline that jumps to the libc routine.
                        $text .= "func ${funcname}_trampoline()\n";
-                       # Map syscall.funcname to just plain funcname.
-                       # (The jump to this function is in the assembly trampoline, generated by mksyscallasm_darwin.go.)
-                       $text .= "//go:linkname $funcname $funcname\n";
                        # Tell the linker that funcname can be found in libSystem using varname without the libc_ prefix.
                        my $basename = substr $funcname, 5;
                        $text .= "//go:cgo_import_dynamic $funcname $basename \"/usr/lib/libSystem.B.dylib\"\n\n";