From 0a043c30ee71245dfe7c9d82d654312c5e1f6127 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 16 Apr 2011 15:40:50 +0200 Subject: vfork: make all archs consistent __vfork is hidden. __GI_vfork is strong (not weak as it was). vfork is weak. e1 can use the generic version. Note: libc_hidden_def(x) has different meaning in .c and .S files. Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/cris/sysdep.h | 8 ++++++++ libc/sysdeps/linux/cris/vfork.S | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'libc/sysdeps/linux/cris') diff --git a/libc/sysdeps/linux/cris/sysdep.h b/libc/sysdeps/linux/cris/sysdep.h index 5960fe235..921dbb3f0 100644 --- a/libc/sysdeps/linux/cris/sysdep.h +++ b/libc/sysdeps/linux/cris/sysdep.h @@ -127,6 +127,14 @@ .align ALIGNARG (2) @ \ C_LABEL(name) +#define HIDDEN_ENTRY(name) \ + .text @ \ + ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME (name) @ \ + .hidden C_SYMBOL_NAME (name) @ \ + ASM_TYPE_DIRECTIVE (C_SYMBOL_NAME (name), function) @ \ + .align ALIGNARG (2) @ \ + C_LABEL(name) + #undef END #define END(name) \ ASM_SIZE_DIRECTIVE (C_SYMBOL_NAME (name)) diff --git a/libc/sysdeps/linux/cris/vfork.S b/libc/sysdeps/linux/cris/vfork.S index ea8a81d82..964eca4c1 100644 --- a/libc/sysdeps/linux/cris/vfork.S +++ b/libc/sysdeps/linux/cris/vfork.S @@ -16,7 +16,7 @@ * enclosing function */ -ENTRY(__vfork) +HIDDEN_ENTRY(__vfork) movu.w __NR_vfork,$r9 break 13 cmps.w -4096,$r10 @@ -27,4 +27,4 @@ ENTRY(__vfork) PSEUDO_END(__vfork) weak_alias(__vfork,vfork) -libc_hidden_weak(vfork) +libc_hidden_def(vfork) -- cgit v1.2.3