diff options
Diffstat (limited to 'sysdeps/generic/mknod.c')
-rw-r--r-- | sysdeps/generic/mknod.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sysdeps/generic/mknod.c b/sysdeps/generic/mknod.c index 8d1dde2546..56530c5d8d 100644 --- a/sysdeps/generic/mknod.c +++ b/sysdeps/generic/mknod.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1995, 1996 Free Software Foundation, Inc. +/* Copyright (C) 1995, 1996, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -45,3 +45,10 @@ __mknod (const char *path, mode_t mode, dev_t dev) } weak_alias (__mknod, mknod) + +/* Hide the symbol so that no definition but the one locally in the + executable or DSO is used. */ +#ifdef HAVE_DOT_HIDDEN +asm (".hidden\tmknod"); +asm (".hidden\t__mknod"); +#endif |