diff options
author | Ulrich Drepper <[email protected]> | 2007-10-16 05:21:27 +0000 |
---|---|---|
committer | Ulrich Drepper <[email protected]> | 2007-10-16 05:21:27 +0000 |
commit | b597dfad924980dede10d7c19d87900b6172e599 (patch) | |
tree | 3c090b69070ad0056d479d90aa1f8829810140ba /backends/sparc_symbol.c | |
parent | 3fc3d7bd6bd8485404a936f7354e781dc2be6a5a (diff) |
merge of '92c36bfdbc6468d1711c043b530e0dfe5abb6dec'
and 'c22c8c43f8f68b0bffd4d5ccdb2282c958268742'
Diffstat (limited to 'backends/sparc_symbol.c')
-rw-r--r-- | backends/sparc_symbol.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/backends/sparc_symbol.c b/backends/sparc_symbol.c index 3a261a00..237620c9 100644 --- a/backends/sparc_symbol.c +++ b/backends/sparc_symbol.c @@ -1,5 +1,5 @@ /* SPARC specific symbolic name handling. - Copyright (C) 2002, 2003, 2005 Red Hat, Inc. + Copyright (C) 2002, 2003, 2005, 2007 Red Hat, Inc. This file is part of Red Hat elfutils. Written by Jakub Jelinek <[email protected]>, 2002. @@ -55,3 +55,14 @@ sparc_reloc_simple_type (Ebl *ebl __attribute__ ((unused)), int type) return ELF_T_NUM; } } + +/* Check whether machine flags are valid. */ +bool +sparc_machine_flag_check (GElf_Word flags) +{ + return ((flags &~ (EF_SPARCV9_MM + | EF_SPARC_LEDATA + | EF_SPARC_32PLUS + | EF_SPARC_SUN_US1 + | EF_SPARC_SUN_US3)) == 0); +} |