summaryrefslogtreecommitdiff
path: root/bfd/cpu-i386.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/cpu-i386.c')
-rw-r--r--bfd/cpu-i386.c28
1 files changed, 1 insertions, 27 deletions
diff --git a/bfd/cpu-i386.c b/bfd/cpu-i386.c
index 962252d4431..7b644c23351 100644
--- a/bfd/cpu-i386.c
+++ b/bfd/cpu-i386.c
@@ -117,19 +117,6 @@ bfd_arch_i386_long_nop_fill (bfd_size_type count,
return bfd_arch_i386_fill (count, code, TRUE);
}
-/* Fill the buffer with zero, or one-byte nop instructions if CODE is TRUE. */
-
-static void *
-bfd_arch_i386_onebyte_nop_fill (bfd_size_type count,
- bfd_boolean is_bigendian ATTRIBUTE_UNUSED,
- bfd_boolean code)
-{
- void *fill = bfd_malloc (count);
- if (fill != NULL)
- memset (fill, code ? 0x90 : 0, count);
- return fill;
-}
-
#define N(BITS, MACH, NAME, PRINT, DEF, FILL, NEXT) \
{ BITS, /* Bits in a word. */ \
BITS, /* Bits in an address. */ \
@@ -148,22 +135,9 @@ bfd_arch_i386_onebyte_nop_fill (bfd_size_type count,
}
-static const bfd_arch_info_type bfd_x64_32_nacl_arch =
- N (64, bfd_mach_x64_32_nacl, "i386", "i386:x64-32:nacl",
- FALSE, bfd_arch_i386_onebyte_nop_fill, NULL);
-
-static const bfd_arch_info_type bfd_x86_64_nacl_arch =
- N (64, bfd_mach_x86_64_nacl, "i386", "i386:x86-64:nacl",
- FALSE, bfd_arch_i386_onebyte_nop_fill, &bfd_x64_32_nacl_arch);
-
-const bfd_arch_info_type bfd_i386_nacl_arch =
- N (32, bfd_mach_i386_i386_nacl, "i386", "i386:nacl",
- TRUE, bfd_arch_i386_onebyte_nop_fill, &bfd_x86_64_nacl_arch);
-
-
static const bfd_arch_info_type bfd_x64_32_arch_intel_syntax =
N (64, bfd_mach_x64_32_intel_syntax, "i386:intel", "i386:x64-32:intel",
- FALSE, bfd_arch_i386_long_nop_fill, &bfd_i386_nacl_arch);
+ FALSE, bfd_arch_i386_long_nop_fill, NULL);
static const bfd_arch_info_type bfd_x86_64_arch_intel_syntax =
N (64, bfd_mach_x86_64_intel_syntax, "i386:intel", "i386:x86-64:intel",