diff options
| author | Andreas Schwab <[email protected]> | 2017-06-15 14:14:50 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2017-06-15 19:40:32 +0200 |
| commit | d65648473d1bfc779e16cd3cbf140a8ba0fed16c (patch) | |
| tree | 0d683ac85faf6908475396774a48c327fd55e318 /backends/ppc_symbol.c | |
| parent | b58aebe71e0b4863db1b7fd3e942e36303257f3a (diff) | |
Support EM_PPC machine flags
This fixes the elflint self test when the compiler is configured for PIE
default.
Signed-off-by: Andreas Schwab <[email protected]>
Diffstat (limited to 'backends/ppc_symbol.c')
| -rw-r--r-- | backends/ppc_symbol.c | 10 |
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))) |
