aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-12-18 02:22:04 +0000
committerRoland McGrath <roland@gnu.org>2003-12-18 02:22:04 +0000
commit382168de70b8a61fcddfaa97b45c34a1a5ac2455 (patch)
tree2ec3da76da8307be2d1ff0cdb2889a77a1d3f224
parentf8a3a2e72664a84cf80c6dfc255a643fef9f5be4 (diff)
downloadglibc-382168de70b8a61fcddfaa97b45c34a1a5ac2455.tar
glibc-382168de70b8a61fcddfaa97b45c34a1a5ac2455.tar.gz
glibc-382168de70b8a61fcddfaa97b45c34a1a5ac2455.tar.bz2
glibc-382168de70b8a61fcddfaa97b45c34a1a5ac2455.zip
2003-11-25 Roland McGrath <roland@redhat.com>
* td_symbol_list.c (symbol_list_arr) [HAVE_ASM_GLOBAL_DOT_NAME]: Prepend "." to symbol names for functions.
-rw-r--r--linuxthreads_db/td_symbol_list.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/linuxthreads_db/td_symbol_list.c b/linuxthreads_db/td_symbol_list.c
index 2e8edeca4f..2f7b2bd4d0 100644
--- a/linuxthreads_db/td_symbol_list.c
+++ b/linuxthreads_db/td_symbol_list.c
@@ -1,5 +1,5 @@
/* Return list of symbols the library can request.
- Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 2001.
@@ -22,6 +22,11 @@
#include <gnu/lib-names.h>
#include "thread_dbP.h"
+#ifdef HAVE_ASM_GLOBAL_DOT_NAME
+# define DOT "." /* PPC64 requires . prefix on code symbols. */
+#else
+# define DOT /* No prefix. */
+#endif
static const char *symbol_list_arr[] =
{
@@ -33,9 +38,9 @@ static const char *symbol_list_arr[] =
[LINUXTHREADS_PTHREAD_THREADS_MAX] = "__linuxthreads_pthread_threads_max",
[LINUXTHREADS_PTHREAD_KEYS_MAX] = "__linuxthreads_pthread_keys_max",
[LINUXTHREADS_PTHREAD_SIZEOF_DESCR] = "__linuxthreads_pthread_sizeof_descr",
- [LINUXTHREADS_CREATE_EVENT] = "__linuxthreads_create_event",
- [LINUXTHREADS_DEATH_EVENT] = "__linuxthreads_death_event",
- [LINUXTHREADS_REAP_EVENT] = "__linuxthreads_reap_event",
+ [LINUXTHREADS_CREATE_EVENT] = DOT "__linuxthreads_create_event",
+ [LINUXTHREADS_DEATH_EVENT] = DOT "__linuxthreads_death_event",
+ [LINUXTHREADS_REAP_EVENT] = DOT "__linuxthreads_reap_event",
[LINUXTHREADS_INITIAL_REPORT_EVENTS] = "__linuxthreads_initial_report_events",
[LINUXTHREADS_VERSION] = "__linuxthreads_version",
[NUM_MESSAGES] = NULL