summaryrefslogtreecommitdiffstats
path: root/backends/ppc_symbol.c
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2017-08-03 12:37:37 +0200
committerMark Wielaard <[email protected]>2017-08-03 14:21:08 +0200
commit766df1e15c1e8f8bc9890e7538eb2ef15a6516dc (patch)
tree45ae9d0ac821a15fbb9336909671e18efc15f6e8 /backends/ppc_symbol.c
parent13c3e00ba629586ae42c316ae4ed6c3f04282a82 (diff)
parent54ba4ce2973113d8f4315d4fc90e16a9b4476ea6 (diff)
Merge tag 'elfutils-0.170' into mjw/RH-DTSdts-0.170
elfutils 0.170 release Conflicts: libcpu/Makefile.am libdw/Makefile.am tests/Makefile.am
Diffstat (limited to 'backends/ppc_symbol.c')
-rw-r--r--backends/ppc_symbol.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/backends/ppc_symbol.c b/backends/ppc_symbol.c
index 1273c1d2..4b32003a 100644
--- a/backends/ppc_symbol.c
+++ b/backends/ppc_symbol.c
@@ -57,6 +57,16 @@ ppc_reloc_simple_type (Ebl *ebl __attribute__ ((unused)), int type)
}
+/* Check whether machine flags are valid. */
+bool
+ppc_machine_flag_check (GElf_Word flags)
+{
+ return ((flags &~ (EF_PPC_EMB
+ | EF_PPC_RELOCATABLE
+ | EF_PPC_RELOCATABLE_LIB)) == 0);
+}
+
+
const char *
ppc_dynamic_tag_name (int64_t tag, char *buf __attribute__ ((unused)),
size_t len __attribute__ ((unused)))