diff options
| author | Mark Wielaard <[email protected]> | 2014-01-04 19:19:16 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2014-01-04 19:19:21 +0100 |
| commit | 0c4a868fa4c3e2a45663a78cc6d1e31089c3b0dc (patch) | |
| tree | e4fa9c028be6747f4808b6b78c374422617fb907 /backends/ppc64_init.c | |
| parent | 1051a0c8ad8b69725384de20647a982b283701f0 (diff) | |
backends: Add PPC64 machine_flag_check.
To distinguish between the current PPC64 ELF ABI and the revised
ELFv2 ABI that will not use function descriptors binutils started
to emit the version (currently 1) in the ehdr e_flags. Recognize
all valid versions (0, 1 or 2) in elflint by adding the hook
ppc64_machine_flag_check.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'backends/ppc64_init.c')
| -rw-r--r-- | backends/ppc64_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/ppc64_init.c b/backends/ppc64_init.c index d8f1417e..e52231c9 100644 --- a/backends/ppc64_init.c +++ b/backends/ppc64_init.c @@ -1,5 +1,5 @@ /* Initialization of PPC64 specific backend library. - Copyright (C) 2004, 2005, 2006, 2007, 2008, 2013 Red Hat, Inc. + Copyright (C) 2004, 2005, 2006, 2007, 2008, 2013, 2014 Red Hat, Inc. This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2004. @@ -58,6 +58,7 @@ ppc64_init (elf, machine, eh, ehlen) HOOK (eh, reloc_simple_type); HOOK (eh, dynamic_tag_name); HOOK (eh, dynamic_tag_check); + HOOK (eh, machine_flag_check); HOOK (eh, copy_reloc_p); HOOK (eh, check_special_symbol); HOOK (eh, bss_plt_p); |
