diff options
| author | Mark Wielaard <[email protected]> | 2014-01-05 21:44:53 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2014-01-05 21:44:53 +0100 |
| commit | 7c463121a7806dfc0d7a50d130a5d49e074b742c (patch) | |
| tree | 679b4b5976354d863a1aec6361f28c3768d44d01 /backends/ppc64_symbol.c | |
| parent | 14e5056319def0555bc4183488e7af5c14a3fb28 (diff) | |
| parent | 27aae18ce872409b70afef8503941c7e75c8d93d (diff) | |
Merge branch 'master' into robustifyupstream/robustify
Diffstat (limited to 'backends/ppc64_symbol.c')
| -rw-r--r-- | backends/ppc64_symbol.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/backends/ppc64_symbol.c b/backends/ppc64_symbol.c index 244e40f8..212d4145 100644 --- a/backends/ppc64_symbol.c +++ b/backends/ppc64_symbol.c @@ -1,5 +1,5 @@ /* PPC64 specific symbolic name handling. - Copyright (C) 2004, 2005 Red Hat, Inc. + Copyright (C) 2004, 2005, 2014 Red Hat, Inc. This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 2004. @@ -110,3 +110,13 @@ ppc64_bss_plt_p (Elf *elf __attribute__ ((unused)), { return true; } + +/* Check whether machine flags are valid. PPC64 has three possible values: + 0 - for unspecified ABI, or not using any specific ABI features. + 1 - for the original ELF PPC64 ABI using function descriptors. + 2 - for the revised ELFv2 PPC64 ABI without function descriptors. */ +bool +ppc64_machine_flag_check (GElf_Word flags) +{ + return flags == 0 || flags == 1 || flags == 2; +} |
