From c1b7586c544957998c0f53711fa91e5de72cc819 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 16 Jun 2018 02:19:47 +0200 Subject: hurd: Avoid PLT references to shortcuts * sysdeps/mach/include/mach-shortcuts-hidden.h: New file. * mach/shortcut.awk: Make syscall stubs include and add hidden definition. * sysdeps/mach/include/mach.h: Include . --- mach/shortcut.awk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mach') diff --git a/mach/shortcut.awk b/mach/shortcut.awk index ea283d4..090da82 100644 --- a/mach/shortcut.awk +++ b/mach/shortcut.awk @@ -1,6 +1,7 @@ # Icky intimate knowledge of MiG output. BEGIN { print "/* This file is generated by shortcut.awk. */"; + print "#include "; echo=1; inproto=0; proto=""; arglist=""; } @@ -44,6 +45,7 @@ echo == 1 { print $0; } print " return err;" print "}"; print "weak_alias (" call ", " alias ")"; + print "libc_hidden_def (" call ")"; # Declare RPC so the weak_alias that follows will work. print "extern __typeof (" call ") " rpc ";"; echo = 1; -- cgit v1.1