diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2016-03-15 19:09:23 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2016-03-21 16:44:49 +0000 |
commit | c0334580516d147fb0257a2df47ac7b1072f6e82 (patch) | |
tree | 7a13d9b935e36d1be783926d5de04e6312a683e8 /bfd/elf32-arc.c | |
parent | 24740d83e4beab0cd8d93944922c62e8a8809391 (diff) | |
download | gdb-c0334580516d147fb0257a2df47ac7b1072f6e82.zip gdb-c0334580516d147fb0257a2df47ac7b1072f6e82.tar.gz gdb-c0334580516d147fb0257a2df47ac7b1072f6e82.tar.bz2 |
arc: Remove duplicated constant in include/elf/arc.h
In the include/elf/arc.h there are two constants that mask out the
machine architecture field. One is used lots (EF_ARC_MACH_MSK), the
other is used only once (EF_ARC_MACH). Remove EF_ARC_MACH.
bfd/ChangeLog:
* elf32-arc.c (arc_elf_final_write_processing): Switch to using
EF_ARC_MACH_MSK.
include/ChangeLog:
* elf/arc.h (EF_ARC_MACH): Delete.
(EF_ARC_MACH_MSK): Remove out of date comment.
Diffstat (limited to 'bfd/elf32-arc.c')
-rw-r--r-- | bfd/elf32-arc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c index 4090b7a..7c856d0 100644 --- a/bfd/elf32-arc.c +++ b/bfd/elf32-arc.c @@ -673,7 +673,7 @@ arc_elf_final_write_processing (bfd * abfd, default: abort (); } - if ((elf_elfheader (abfd)->e_flags & EF_ARC_MACH) == EF_ARC_CPU_GENERIC) + if ((elf_elfheader (abfd)->e_flags & EF_ARC_MACH_MSK) == EF_ARC_CPU_GENERIC) elf_elfheader (abfd)->e_flags |= val; elf_elfheader (abfd)->e_machine = emf; |