diff options
| author | Mark Wielaard <[email protected]> | 2014-05-19 16:52:56 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2014-05-19 22:04:24 +0200 |
| commit | 028d0ab0cc1cb5f96ee48feef966b7d8d56c6a8e (patch) | |
| tree | a8217d678cede635782d0fe33413a3dc3ae206af /backends/arm_symbol.c | |
| parent | 85482fc073442a056e0e3663eb454fa76d883271 (diff) | |
backends: Add ebl_check_reloc_target_type.
And implement for arm and ia64. Both have special section types that
are valid targets for a reloc. Both refer to unwind data. elflint now
just calls ebl_check_reloc_target_type instead of hard coding the
expected section types.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'backends/arm_symbol.c')
| -rw-r--r-- | backends/arm_symbol.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/backends/arm_symbol.c b/backends/arm_symbol.c index e41ce347..cd467ffc 100644 --- a/backends/arm_symbol.c +++ b/backends/arm_symbol.c @@ -1,5 +1,5 @@ /* Arm specific symbolic name handling. - Copyright (C) 2002-2009 Red Hat, Inc. + Copyright (C) 2002-2009, 2014 Red Hat, Inc. This file is part of elfutils. This file is free software; you can redistribute it and/or modify @@ -122,3 +122,10 @@ arm_reloc_simple_type (Ebl *ebl __attribute__ ((unused)), int type) return ELF_T_NUM; } } + +/* The SHT_ARM_EXIDX section type is a valid target for relocation. */ +bool +arm_check_reloc_target_type (Ebl *ebl __attribute__ ((unused)), Elf64_Word sh_type) +{ + return sh_type == SHT_ARM_EXIDX; +} |
