From 5ca10a0c9ad1edb3b2e2e59ac6dccdd879cf84ae Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Tue, 3 Feb 2015 07:41:25 -0500 Subject: powerpc: Remove HAVE_ASM_GLOBAL_DOT_NAME define With AIX port deprecated there is no need to check/define HAVE_ASM_GLOBAL_DOT_NAME anymore since the current minimum binutils supported (2.22) does not emit global symbol with dot. This patch removes all the HAVE_ASM_GLOBAL_DOT_NAME definition and checks for powerpc64 port. --- nptl_db/db-symbols.h | 6 +----- nptl_db/td_symbol_list.c | 8 -------- 2 files changed, 1 insertion(+), 13 deletions(-) (limited to 'nptl_db') diff --git a/nptl_db/db-symbols.h b/nptl_db/db-symbols.h index 47fe951e86..0f27e67d93 100644 --- a/nptl_db/db-symbols.h +++ b/nptl_db/db-symbols.h @@ -16,11 +16,7 @@ License along with the GNU C Library; if not, see . */ -#ifdef HAVE_ASM_GLOBAL_DOT_NAME -# define DOT(x) .##x /* PPC64 requires . prefix on code symbols. */ -#else -# define DOT(x) x /* No prefix. */ -#endif +#define DOT(x) x /* No prefix. */ #define STRINGIFY(name) STRINGIFY_1(name) #define STRINGIFY_1(name) #name diff --git a/nptl_db/td_symbol_list.c b/nptl_db/td_symbol_list.c index 6b14d3683e..6915ed78eb 100644 --- a/nptl_db/td_symbol_list.c +++ b/nptl_db/td_symbol_list.c @@ -48,13 +48,5 @@ td_lookup (struct ps_prochandle *ps, int idx, psaddr_t *sym_addr) result = ps_pglobal_lookup (ps, LIBPTHREAD_SO, symbol_list_arr[idx], sym_addr); -#ifdef HAVE_ASM_GLOBAL_DOT_NAME - /* For PowerPC, 64-bit uses dot symbols but 32-bit does not. - We could be a 64-bit libthread_db debugging a 32-bit libpthread. */ - if (result == PS_NOSYM && symbol_list_arr[idx][0] == '.') - result = ps_pglobal_lookup (ps, LIBPTHREAD_SO, &symbol_list_arr[idx][1], - sym_addr); -#endif - return result; } -- cgit 1.4.1