gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / bfd / mach-o-aarch64.c
index 5cf336433f99a91497e1c7bf93eecc5dfb6c8e6b..c71b92e47cad0bbcabc06fe8c7a92c2940bc6dea 100644 (file)
@@ -1,5 +1,5 @@
 /* AArch-64 Mach-O support for BFD.
-   Copyright (C) 2015-2017 Free Software Foundation, Inc.
+   Copyright (C) 2015-2020 Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
 
    MA 02110-1301, USA.  */
 
 #include "sysdep.h"
-#include "mach-o.h"
 #include "bfd.h"
 #include "libbfd.h"
 #include "libiberty.h"
+#include "mach-o.h"
 #include "mach-o/arm64.h"
 
 #define bfd_mach_o_object_p bfd_mach_o_arm64_object_p
 #define bfd_mach_o_tgt_seg_table NULL
 #define bfd_mach_o_section_type_valid_for_tgt NULL
 
-static const bfd_target *
+static bfd_cleanup
 bfd_mach_o_arm64_object_p (bfd *abfd)
 {
   return bfd_mach_o_header_p (abfd, 0, 0, BFD_MACH_O_CPU_TYPE_ARM64);
 }
 
-static const bfd_target *
+static bfd_cleanup
 bfd_mach_o_arm64_core_p (bfd *abfd)
 {
   return bfd_mach_o_header_p (abfd, 0,
-                              BFD_MACH_O_MH_CORE, BFD_MACH_O_CPU_TYPE_ARM64);
+                             BFD_MACH_O_MH_CORE, BFD_MACH_O_CPU_TYPE_ARM64);
 }
 
 static bfd_boolean
@@ -213,18 +213,18 @@ bfd_mach_o_arm64_canonicalize_one_reloc (bfd *       abfd,
       break;
     case BFD_MACH_O_ARM64_RELOC_SUBTRACTOR:
       if (reloc.r_pcrel)
-        return FALSE;
+       return FALSE;
       switch (reloc.r_length)
-        {
-        case 2:
-          res->howto = &arm64_howto_table[11];
-          return TRUE;
-        case 3:
-          res->howto = &arm64_howto_table[12];
-          return TRUE;
-        default:
-          return FALSE;
-        }
+       {
+       case 2:
+         res->howto = &arm64_howto_table[11];
+         return TRUE;
+       case 3:
+         res->howto = &arm64_howto_table[12];
+         return TRUE;
+       default:
+         return FALSE;
+       }
       break;
     case BFD_MACH_O_ARM64_RELOC_BRANCH26:
       if (reloc.r_length == 2 && reloc.r_pcrel == 1)
@@ -295,12 +295,12 @@ bfd_mach_o_arm64_bfd_reloc_name_lookup (bfd *abfd ATTRIBUTE_UNUSED,
   return NULL;
 }
 
-#define TARGET_NAME            aarch64_mach_o_vec
-#define TARGET_STRING          "mach-o-arm64"
+#define TARGET_NAME            aarch64_mach_o_vec
+#define TARGET_STRING          "mach-o-arm64"
 #define TARGET_ARCHITECTURE    bfd_arch_aarch64
 #define TARGET_PAGESIZE                4096
-#define TARGET_BIG_ENDIAN      0
-#define TARGET_ARCHIVE                 0
+#define TARGET_BIG_ENDIAN      0
+#define TARGET_ARCHIVE         0
 #define TARGET_PRIORITY                0
 #include "mach-o-target.c"
 
This page took 0.027274 seconds and 4 git commands to generate.