aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach')
-rw-r--r--sysdeps/mach/hurd/Versions9
-rw-r--r--sysdeps/mach/hurd/i386/init-first.c2
2 files changed, 11 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/Versions b/sysdeps/mach/hurd/Versions
new file mode 100644
index 0000000000..79d5ce6e04
--- /dev/null
+++ b/sysdeps/mach/hurd/Versions
@@ -0,0 +1,9 @@
+libc {
+ GLIBC_2.0 {
+ # variables used for detecting cthreads
+ _cthread_exit_routine; _cthread_init_routine;
+
+ # functions with a weak definition in the dynamic linker
+ __getcwd; __mmap;
+ }
+}
diff --git a/sysdeps/mach/hurd/i386/init-first.c b/sysdeps/mach/hurd/i386/init-first.c
index bfc2ff5b57..6854a1b3dc 100644
--- a/sysdeps/mach/hurd/i386/init-first.c
+++ b/sysdeps/mach/hurd/i386/init-first.c
@@ -35,7 +35,9 @@ unsigned int __hurd_threadvar_max;
unsigned long int __hurd_threadvar_stack_offset;
unsigned long int __hurd_threadvar_stack_mask;
+#ifndef PIC
int __libc_enable_secure;
+#endif
int __libc_multiple_libcs = 1;
extern int __libc_argc;