AArch64: Revert setting of elf class in linker stub.
[deliverable/binutils-gdb.git] / bfd / elfnn-aarch64.c
index 756ffeb6bdad04ce7fc466e7f3c23c462c6a806a..5fabcd8f6462730aef10ec942b594d589759994e 100644 (file)
@@ -3177,10 +3177,6 @@ _bfd_aarch64_create_stub_section (asection *section,
   if (s_name == NULL)
     return NULL;
 
-  /* PR 25210.  Set the right class on the stub_bfd.  */
-  elf_elfheader (htab->stub_bfd)->e_ident[EI_CLASS] = ELFCLASSNN;
-  BFD_ASSERT (ELFCLASSNN == get_elf_backend_data (htab->stub_bfd)->s->elfclass);
-
   memcpy (s_name, section->name, namelen);
   memcpy (s_name + namelen, STUB_SUFFIX, sizeof (STUB_SUFFIX));
   return (*htab->add_stub_section) (s_name, section);
This page took 0.023127 seconds and 4 git commands to generate.