| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COURGETTE_DISASSEMBLER_ELF_32_ARM_H_ | 5 #ifndef COURGETTE_DISASSEMBLER_ELF_32_ARM_H_ |
| 6 #define COURGETTE_DISASSEMBLER_ELF_32_ARM_H_ | 6 #define COURGETTE_DISASSEMBLER_ELF_32_ARM_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <map> | 11 #include <map> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "courgette/disassembler_elf_32.h" | 14 #include "courgette/disassembler_elf_32.h" |
| 15 #include "courgette/types_elf.h" | 15 #include "courgette/types_elf.h" |
| 16 | 16 |
| 17 namespace courgette { | 17 namespace courgette { |
| 18 | 18 |
| 19 class AssemblyProgram; | |
| 20 class InstructionReceptor; | 19 class InstructionReceptor; |
| 21 | 20 |
| 22 enum ARM_RVA { | 21 enum ARM_RVA { |
| 23 ARM_OFF8, | 22 ARM_OFF8, |
| 24 ARM_OFF11, | 23 ARM_OFF11, |
| 25 ARM_OFF24, | 24 ARM_OFF24, |
| 26 ARM_OFF25, | 25 ARM_OFF25, |
| 27 ARM_OFF21, | 26 ARM_OFF21, |
| 28 }; | 27 }; |
| 29 | 28 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 std::map<RVA, int> rel32_target_rvas_; | 95 std::map<RVA, int> rel32_target_rvas_; |
| 97 #endif | 96 #endif |
| 98 | 97 |
| 99 private: | 98 private: |
| 100 DISALLOW_COPY_AND_ASSIGN(DisassemblerElf32ARM); | 99 DISALLOW_COPY_AND_ASSIGN(DisassemblerElf32ARM); |
| 101 }; | 100 }; |
| 102 | 101 |
| 103 } // namespace courgette | 102 } // namespace courgette |
| 104 | 103 |
| 105 #endif // COURGETTE_DISASSEMBLER_ELF_32_ARM_H_ | 104 #endif // COURGETTE_DISASSEMBLER_ELF_32_ARM_H_ |
| OLD | NEW |