summaryrefslogtreecommitdiff
path: root/mach
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-06-16 02:19:47 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-06-16 02:48:41 +0200
commitc1b7586c544957998c0f53711fa91e5de72cc819 (patch)
tree3ba2e8381998df96f3b22b9cac2e9bd22d8e6bd3 /mach
parent932d05f0dc89b905570bf8bd69bfe7fda2821ccf (diff)
downloadglibc-c1b7586c544957998c0f53711fa91e5de72cc819.tar.gz
hurd: Avoid PLT references to shortcuts
* sysdeps/mach/include/mach-shortcuts-hidden.h: New file. * mach/shortcut.awk: Make syscall stubs include <mach-shortcuts-hidden.h> and add hidden definition. * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
Diffstat (limited to 'mach')
-rw-r--r--mach/shortcut.awk2
1 files changed, 2 insertions, 0 deletions
diff --git a/mach/shortcut.awk b/mach/shortcut.awk
index ea283d49ba..090da82b6a 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 <mach-shortcuts-hidden.h>";
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;