~ubuntu-branches/ubuntu/natty/eglibc/natty-security

« back to all changes in this revision

Viewing changes to nptl_db/td_symbol_list.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-08-03 10:17:12 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20090803101712-n74r7xge7cwubmka
Tags: upstream-2.10.1
ImportĀ upstreamĀ versionĀ 2.10.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Return list of symbols the library can request.
2
 
   Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
 
2
   Copyright (C) 2001,2002,2003,2009 Free Software Foundation, Inc.
3
3
   This file is part of the GNU C Library.
4
4
   Contributed by Ulrich Drepper <drepper@redhat.com>, 2001.
5
5
 
22
22
#include <gnu/lib-names.h>
23
23
#include "thread_dbP.h"
24
24
 
25
 
 
26
 
#ifdef HAVE_ASM_GLOBAL_DOT_NAME
27
 
# define DOT "."                /* PPC64 requires . prefix on code symbols.  */
28
 
#else
29
 
# define DOT                    /* No prefix.  */
30
 
#endif
31
 
 
32
25
static const char *symbol_list_arr[] =
33
26
{
34
 
# define DB_STRUCT(type) \
35
 
  [SYM_SIZEOF_##type] = "_thread_db_sizeof_" #type,
36
 
# define DB_STRUCT_FIELD(type, field) \
37
 
  [SYM_##type##_FIELD_##field] = "_thread_db_" #type "_" #field,
38
 
# define DB_SYMBOL(name) \
39
 
  [SYM_##name] = #name,
40
 
# define DB_FUNCTION(name) \
41
 
  [SYM_##name] = DOT #name,
42
 
# define DB_VARIABLE(name) \
43
 
  [SYM_##name] = #name, \
44
 
  [SYM_DESC_##name] = "_thread_db_" #name,
45
 
# include "structs.def"
46
 
# undef DB_STRUCT
47
 
# undef DB_FUNCTION
48
 
# undef DB_SYMBOL
49
 
# undef DB_VARIABLE
50
 
 
51
 
  [SYM_TH_UNIQUE_CONST_THREAD_AREA] = "_thread_db_const_thread_area",
52
 
  [SYM_TH_UNIQUE_REGISTER64] = "_thread_db_register64",
53
 
  [SYM_TH_UNIQUE_REGISTER32] = "_thread_db_register32",
54
 
  [SYM_TH_UNIQUE_REGISTER32_THREAD_AREA] = "_thread_db_register32_thread_area",
55
 
  [SYM_TH_UNIQUE_REGISTER64_THREAD_AREA] = "_thread_db_register64_thread_area",
 
27
# define DB_LOOKUP_NAME(idx, name)              [idx] = STRINGIFY (name),
 
28
# define DB_LOOKUP_NAME_TH_UNIQUE(idx, name)    [idx] = STRINGIFY (name),
 
29
# include "db-symbols.h"
 
30
# undef DB_LOOKUP_NAME
 
31
# undef DB_LOOKUP_NAME_TH_UNIQUE
56
32
 
57
33
  [SYM_NUM_MESSAGES] = NULL
58
34
};