This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Ports updates for NPTL _internal aliases change
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: libc-ports at sourceware dot org
- Date: Wed, 30 May 2012 10:00:59 +0000 (UTC)
- Subject: Ports updates for NPTL _internal aliases change
I've applied these changes to update the ARM and MIPS ports for the move
of NPTL to use hidden_def instead of _internal function aliases.
Other architectures (alpha, ia64, hppa, m68k, tile) will need similar
changes. hppa does more complicated things with _internal function names
and I don't know exactly what will be right there.
diff --git a/ChangeLog.arm b/ChangeLog.arm
index ec63edb..1d684d2 100644
--- a/ChangeLog.arm
+++ b/ChangeLog.arm
@@ -1,3 +1,8 @@
+2012-05-30 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Replace
+ _internal alias by hidden_def.
+
2012-05-26 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/arm/syscalls.list (chown): New.
diff --git a/ChangeLog.mips b/ChangeLog.mips
index b7c1ff3..d058589 100644
--- a/ChangeLog.mips
+++ b/ChangeLog.mips
@@ -1,3 +1,8 @@
+2012-05-30 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Replace
+ _internal alias by hidden_def.
+
2012-05-26 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: New
diff --git a/sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c b/sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c
index 5c6d26d..eea1287 100644
--- a/sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c
+++ b/sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 2004-2012 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
@@ -86,7 +86,7 @@ __pthread_once (pthread_once_t *once_control, void (*init_routine) (void))
return 0;
}
weak_alias (__pthread_once, pthread_once)
-strong_alias (__pthread_once, __pthread_once_internal)
+hidden_def (__pthread_once)
#if defined(__USING_SJLJ_EXCEPTIONS__) && !defined(__PIC__)
/* When statically linked, if pthread_create is used, this file
diff --git a/sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c b/sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c
index 0b62076..308da8b 100644
--- a/sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c
+++ b/sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 2003-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Jakub Jelinek <jakub@redhat.com>, 2003.
@@ -90,4 +90,4 @@ __pthread_once (once_control, init_routine)
return 0;
}
weak_alias (__pthread_once, pthread_once)
-strong_alias (__pthread_once, __pthread_once_internal)
+hidden_def (__pthread_once)
--
Joseph S. Myers
joseph@codesourcery.com