Signed-off-by: Petr Machata <[email protected]> --- backends/ChangeLog | 5 +++++ backends/arm_init.c | 3 ++- backends/arm_symbol.c | 15 ++++++++++++++- 3 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/backends/ChangeLog b/backends/ChangeLog index 57e1b8e..9f5975a 100644 --- a/backends/ChangeLog +++ b/backends/ChangeLog @@ -1,3 +1,8 @@ +2015-02-23 Petr Machata <[email protected]> + + * arm_symbol.c (arm_symbol_type_name): New function. + * arm_init.c (arm_init): Initialize the hook. + 2014-12-30 Mark Wielaard <[email protected]> * ppc_symbol.c (find_dyn_got): Check sh_entsize is not zero. diff --git a/backends/arm_init.c b/backends/arm_init.c index 3283c97..f3e5f0a 100644 --- a/backends/arm_init.c +++ b/backends/arm_init.c @@ -1,5 +1,5 @@ /* Initialization of Arm specific backend library. - Copyright (C) 2002, 2005, 2009, 2013, 2014 Red Hat, Inc. + Copyright (C) 2002, 2005, 2009, 2013, 2014, 2015 Red Hat, Inc. This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2002. @@ -64,6 +64,7 @@ arm_init (elf, machine, eh, ehlen) HOOK (eh, return_value_location); HOOK (eh, abi_cfi); HOOK (eh, check_reloc_target_type); + HOOK (eh, symbol_type_name); /* We only unwind the core integer registers. */ eh->frame_nregs = 16; diff --git a/backends/arm_symbol.c b/backends/arm_symbol.c index cd467ff..da4a50a 100644 --- a/backends/arm_symbol.c +++ b/backends/arm_symbol.c @@ -1,5 +1,5 @@ /* Arm specific symbolic name handling. - Copyright (C) 2002-2009, 2014 Red Hat, Inc. + Copyright (C) 2002-2009, 2014, 2015 Red Hat, Inc. This file is part of elfutils. This file is free software; you can redistribute it and/or modify @@ -129,3 +129,16 @@ arm_check_reloc_target_type (Ebl *ebl __attribute__ ((unused)), Elf64_Word sh_ty { return sh_type == SHT_ARM_EXIDX; } + +const char * +arm_symbol_type_name (int type, + char *buf __attribute__ ((unused)), + size_t len __attribute__ ((unused))) +{ + switch (type) + { + case STT_ARM_TFUNC: + return "ARM_TFUNC"; + } + return NULL; +} -- 2.1.0
